Oops....
I sincerely promise: I'll never drink again.
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
Announcement
Collapse
No announcement yet.
wrong equate names for MSGBOX format?
Collapse
X
-
To expand on Semen's response, the %ID_ equates are used to identify which button was selected by the user. You must use the %MB_ equates, which are already formatted as you suggest, when telling Windows which buttons to display.
MB_HELP is not a valid choice. ID_HELP is a standard windows value that is not used with Message Boxes.
-- Eric
------------------
Perfect Sync: Perfect Sync Development Tools
Email: mailto:[email protected][email protected]</A>
[This message has been edited by Eric Pearson (edited January 29, 2001).]
Leave a comment:
-
Egbert --
MsgBox (a wrapper for MessageBox) uses MB_... constants, not ID...
------------------
E-MAIL: [email protected]
Leave a comment:
-
wrong equate names for MSGBOX format?
Hi fellows,
My recently downloaded copy of Win32Api probably contains wrong equates for the message box. There are 7 name constants taking the values 1 thru 7.
This is what I got:
0, no equate, box with OK button
1, %IDOK, box with OK and Cancel buttons
2, %IDCANCEL, box with Abort, Retry and Ignore buttons
3, %IDABORT, box with Yes, No and Cancel buttons
4, %IDRETRY, box with Yes and No buttons
5, %IDIGNORE, box with Retry and Cancel buttons
6, %IDYES, box with Help button
7, %IDNO, no button at all (you need Task Manager to quit)
I think the equates should be renamed as follows:
%IDOK = 0
%IDOKCANCEL = 1
%IDABORTRETRYIGNORE = 2
%IDYESNOCANCEL = 3
%IDYESNO = 4
%IDRETRYCANCEL = 5
%IDHELP = 6 (BTW: can someone provide a demo for the use of this msgbox format?)
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
[This message has been edited by Egbert Zijlema (edited January 29, 2001).]Tags: None
Leave a comment: