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
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.
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. > >