Re: Right click mouse window activation disabling



I'm not quite sure what you are asking. But if your problem is that when you click in any
dialog the entire app and dialogs come to the front, THAT IS WINDOWS WORKING AS IT IS
SUPPOSED TO WORK. Defeating this is not possible. If all you are concerned about is
intercepting the right-click, however, you have neglected to say anything useful in your
description. You talk about RButtonDown, but you do not say what class you implement this
in, or the relationship of that class to any other window class in your app. Likewise for
PreTranslateMessage. Without useful information, no analysis is possible.
joe

On Fri, 18 Apr 2008 01:46:36 -0700 (PDT), Kishore <kishor.s22@xxxxxxxxx> wrote:

I have a dialog based application which has two dialogs where secod
dialo is a modeless dialog.
When I Right click the mouse button on any one of the dialog that
comes to foreground.
I need to block this behaviour on Right click (i.e only on Left click
dialog should get activated).
How can i achieve this?

I tried overriding Rbutton down/up and commenting the base class call
but no effect.
also i tried pretranslating and blocking Rbutoon messages but without
any success.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.