Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 2 Jul 2008 11:48:02 -0700,    group: microsoft.public.win32.programmer.ui        back       


SubClass to catch WM_LBUTTONUP on titlebar   
Try to catch the WM_LBUTTONUP message when user click on titlebar.

Subclass the window (Style: 0x16CF0000, Ext Style: 0x40300), was able to 
catch WM_NCLBUTTONDOWN, but not WM_LBUTTONUP.  Any idea?

The window indeed get WM_LBUTTON msg, shown on Spy++.

George
date: Wed, 2 Jul 2008 11:48:02 -0700   author:   George

Re: SubClass to catch WM_LBUTTONUP on titlebar   
George wrote:
> Try to catch the WM_LBUTTONUP message when user click on titlebar.
> 
> Subclass the window (Style: 0x16CF0000, Ext Style: 0x40300), was able to 
> catch WM_NCLBUTTONDOWN, but not WM_LBUTTONUP.  Any idea?
> 
> The window indeed get WM_LBUTTON msg, shown on Spy++.
> 
> George

Perhaps you should be trying to catch WM_NCLBUTTONUP instead.

Is this window in you own application? If so, you probably don't need to 
subclass it.

-- 
Norm

To reply, change domain to an adult feline.
date: Wed, 02 Jul 2008 17:02:39 -0700   author:   Norman Bullen

Re: SubClass to catch WM_LBUTTONUP on titlebar   
Norman,

Thanks for reply.

The window doesn't get WM_NCLBUTTONUP message.  I tried.  Not shown on Spy++ 
either.

The window isn't created by me.   I have to subclass.

George



"Norman Bullen" wrote:
> George wrote:
> > Try to catch the WM_LBUTTONUP message when user click on titlebar.
> > 
> > Subclass the window (Style: 0x16CF0000, Ext Style: 0x40300), was able to 
> > catch WM_NCLBUTTONDOWN, but not WM_LBUTTONUP.  Any idea?
> > 
> > The window indeed get WM_LBUTTON msg, shown on Spy++.
> > 
> > George
> 
> Perhaps you should be trying to catch WM_NCLBUTTONUP instead.
> 
> Is this window in you own application? If so, you probably don't need to 
> subclass it.
> 
> -- 
> Norm
> 
> To reply, change domain to an adult feline.
> 
>
date: Thu, 3 Jul 2008 07:51:01 -0700   author:   George

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us