Hi,
Can anyone help? I would like to invoke a modal dialog from a menu item/toolbar button and whilst the dialog is being displayed, I would like the menu item and button disabled. I have no problem doing this for the items which result in a modeless dialog being displayed. It is because I have modeless dialogs also that I want this odd action from the buttons when modal dialogs are displayed.
I need the ON_UPDATE_COMMAND_UI handler for my buttons to be called before and after the modal dialog is displayed.
Is the answer to send some message to the CMainFrame class? If so which one?
Maybe the only answer is to make all the existing modal dialogs modeless however this would be an expensive redesigned, any ideas?
Many Thanks Andy.
Can anyone help? I would like to invoke a modal dialog from a menu item/toolbar button and whilst the dialog is being displayed, I would like the menu item and button disabled. I have no problem doing this for the items which result in a modeless dialog being displayed. It is because I have modeless dialogs also that I want this odd action from the buttons when modal dialogs are displayed.
I need the ON_UPDATE_COMMAND_UI handler for my buttons to be called before and after the modal dialog is displayed.
Is the answer to send some message to the CMainFrame class? If so which one?
Maybe the only answer is to make all the existing modal dialogs modeless however this would be an expensive redesigned, any ideas?
Many Thanks Andy.