Skip to main content
gamedev.net
🔒 Locked

Problem with CreateDialog()...

Started by division Feb 26, 2003 at 1:48 PM 1 replies 300+ views
Original Post
division
division
Hello, I''ve got a problem with the CreateDialog function of Win32 API. I create several (5) dialogs which are all using the same message-handler. When I press a button in the first dialog the next dialogs will not be shown, only the last!? I don''t know where my fault is. The dialogs are called like this: CreateDialog(hInst,MAKEINTRESOURCE(DIALOG0),hWnd,MyHandler); CreateDialog(hInst,MAKEINTRESOURCE(DIALOG1),hWnd,MyHandler); CreateDialog(hInst,MAKEINTRESOURCE(DIALOG2),hWnd,MyHandler); CreateDialog(hInst,MAKEINTRESOURCE(DIALOG3),hWnd,MyHandler); CreateDialog(hInst,MAKEINTRESOURCE(DIALOG4),hWnd,MyHandler); Has anyone an idea? - Thanks for your help!
quant
quant
To create a dialog box i use..


DialogBox( hInst, MAKEINTRESOURCE(ID_MAIN), NULL, (DLGPROC)MainDlgProc );

For the 1st dialog box (in winmain)

and then for more dialog boxes i use

DialogBoxParam(GetModuleHandle(NULL),MAKEINTRESOURCE(ID_HELBOX), NULL, (DLGPROC)MainDlgProc, 1);


hope that helps
-keyboard
division
division
Hi! :-)

Why do you pass a value of ''1'' to the following dialogs?

Thank you!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.