Board index » cppbuilder » Detect an Event when the dialog is dragged and move

Detect an Event when the dialog is dragged and move


2004-05-24 01:24:39 PM
cppbuilder45
What 's the name of the event which is tiggered when Dialog Window is
dragged and moved by left click on the top blue window frame?
Thx for reply.
 
 

Re:Detect an Event when the dialog is dragged and move

Hi,
Typically, the movement of a window is signalled via the WM_MOVE
message (see tinyurl.com/3frk2). If you're working with another
type of dialog (e.g., a system-created dialog), you'll need to hook
(subclass) it before you can handle the WM_MOVE message (there's a
related code example here: tinyurl.com/yrm2f).
HTH,
LV wrote:
Quote

What 's the name of the event which is tiggered when Dialog Window is
dragged and moved by left click on the top blue window frame?
 

Re:Detect an Event when the dialog is dragged and move

"LV" < XXXX@XXXXX.COM >wrote:
Quote
What 's the name of the event which is tiggered when Dialog
Window is dragged [...]
WM_PIGLETTEING or maybe WM_PHOOING :-O
There is no actual event. Windows sends a message to the form
which is WM_MOVING. To receive notice, you'll have to subclass
the dialog. Then you have 2 choices of how to get at that
message. You must either override it's WndProc method or use a
message map.
~ JD
 

{smallsort}