cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Cris_Moore
Level 5

DefineDialog with DLG_MSG_ALL

Can anyone confirm that this WORKS? :eek:

Creating a dialog using DefineDialog() with DLG_MSG_ALL is suppose to pass "most Windows" messages. From what I see, this doesn't do any more than using EzDefineDialog(). :confused:
Labels (1)
0 Kudos
(3) Replies
Cris_Moore
Level 5

Has anyone gotten DefineDialog with DLG_MSG_ALL to work? By that I mean you are able to see more than just the standard button messages.
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

The documentation is somewhat unclear as to the meaning of these flags. DLG_MSG_ALL may some send additional messages, but the following is a general guideline of what may or may not be returned to script code.

Notification messages (all except the following are returned to script):
NM_SETFOCUS
NM_KILLFOCUS
NM_CUSTOMDRAW
NM_HOVER
NM_NCHITTEST
NM_RELEASEDCAPTURE
NM_SETCURSOR

Command messages:
Edit controls (no messages besides the following will return to script):
EN_CHANGE
EN_UPDATE
EN_MAXTEXT

Combo controls (no messages besides the following will return to script):
CBN_CLOSEUP
CBN_DROPDOWN
CBN_DBLCLK
CBN_EDITCHANGE
CBN_EDITUPDATE
CBN_SELCHANGE
CBN_SELENDCANCEL
CBN_SELENDOK

List controls (no messages besides the following will return to script):
LBN_SELCHANGE
LBN_SELCANCEL
LBN_DBLCLK

Button controls:
All command messages will return to script

DLG_MSG_STANDARD returns a slightly more limited subset of the above messages.

In general, no messages are returned to script code that cannot be handled by the script since there are some limitations with the InstallScript language and the dialog manager that would prevent these messages from being handled appropriately.
0 Kudos
Cris_Moore
Level 5

Thanks for the info Josh! This type of info really needs to be in the Help file.
0 Kudos