Software Archive
Read-only legacy content
17060 Discussions

Visual Programming. Getting handle to certain Dialog controls.aying messages in

presser
Beginner
569 Views
Running a Qickwin Application: My goal is to have a message displayed in the status bar just in the moment when passing the cursor over a certain dialog box control.
I succeeded in so far as by comparing the windows handle and the dialog box handle in a modeless dialog shows me when I move into the dialog box, but there is no handle for control items itself. The Routine GetunitQQ seams not to work.
I would be very pleased if someone could help me.
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
569 Views
Btw, how did you manage to get a callback function called when the mouse is over the dialog? IMO it can be achieved only by fully handling the modeless dialog with Win32 and intercepting WM_MOUSEMOVE (i.e. not using DFLOGM) -- I may be wrong, but I think that callback registered with RegisterMouseEvent isn't called when the mouse is over the dialog and the dialog has focus?

Anyway, take a look at Win32 APIs

GetDlgItem (control ID -> handle conversion)

GetDlgCtrlID (control handle -> ID conversion)

ChildWindowFromPoint (returns handle of child window under given coordinates)


Jugoslav
0 Kudos
Reply