Hi,
I am using FRAMEWIN widgets encapsulated in Dialogs to
create a menu driven GUI.
I’ve figured out how to make one Dialog box create another
than close itself thus linking them together. But I’d also like to send a message from one Dialog box to th other.
I’m not sure the code segment below works. It seems that the
final statement doesn’t always get executed before the new dialog box comes up.
// This is a four byte variable. msg_bffr_ptr points to it
msg_bffr = 2;
// End this dialog
GUI_EndDialog(pMsg->hWin, 0); // End the current dialog box
// Create the new dialog box and get its handle
hCurrentMenu = GUI_CreateDialogBox(_aL2_Configure, GUI_COUNTOF(_aL2_Configure), _cbL2_Configure, WM_HBKWIN, 0, 0);
// Now set user data in the new dialog box to send the message
WM_SetUserData(hCurrentMenu, msg_bffr_ptr, 4);
Can anyone offer suggestions as to how I may achieve the
intended result?
I am using FRAMEWIN widgets encapsulated in Dialogs to
create a menu driven GUI.
I’ve figured out how to make one Dialog box create another
than close itself thus linking them together. But I’d also like to send a message from one Dialog box to th other.
I’m not sure the code segment below works. It seems that the
final statement doesn’t always get executed before the new dialog box comes up.
// This is a four byte variable. msg_bffr_ptr points to it
msg_bffr = 2;
// End this dialog
GUI_EndDialog(pMsg->hWin, 0); // End the current dialog box
// Create the new dialog box and get its handle
hCurrentMenu = GUI_CreateDialogBox(_aL2_Configure, GUI_COUNTOF(_aL2_Configure), _cbL2_Configure, WM_HBKWIN, 0, 0);
// Now set user data in the new dialog box to send the message
WM_SetUserData(hCurrentMenu, msg_bffr_ptr, 4);
Can anyone offer suggestions as to how I may achieve the
intended result?