...Although I do have one small question, why does the Dialog Function return BOOL?
Thanks again for everything!!!
Uni
[edited by - Unimatrix_001 on May 30, 2002 8:34:21 PM]
Dialog Boxes
It doesn't it returns an int.
{From the Win32 API Help file...}
"Return Values
If the function succeeds, the return value is the nResult parameter in the call to the EndDialog function used to terminate the dialog box.
If the function fails, the return value is -1."
You can test this returned value against windows defined variables such as ID_OK or ID_CANCEL to see how the user shut down the dialog (or obviously against -1 to see if there was an error with the function call).
SysOp_1101
[edited by - SysOp_1101 on May 30, 2002 8:44:06 PM]
{From the Win32 API Help file...}
"Return Values
If the function succeeds, the return value is the nResult parameter in the call to the EndDialog function used to terminate the dialog box.
If the function fails, the return value is -1."
You can test this returned value against windows defined variables such as ID_OK or ID_CANCEL to see how the user shut down the dialog (or obviously against -1 to see if there was an error with the function call).
SysOp_1101
[edited by - SysOp_1101 on May 30, 2002 8:44:06 PM]
Thanks Rickmeister, you definitely are an ace teacher. I''ve been puzzled over this all week looking in books about this. One look at your posts and it worked first time.
Very much appreciated!
Very much appreciated!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement