In my message pump I've got code to save a ton of variables..
It's what the app does.
Rather than gather all these variables from the dialog box/text boxes etc twice and have repetitive code I just need to either SAVE to the same file or if no filename exists I will use the SAVEAS.
However, if a filename DOES exist, then I want the SAVEAS to come up when the SAVEAS menu is clicked.
I do not recall how to differentiate how a menu was clicked with %BM_CLICK..???
Case %IDM_SAVE, %IDM_SAVEAS
IF WAS CLICKED IDM_SAVEAS Then always show dialog box else just save.
Thanks!
Scott
It's what the app does.
Rather than gather all these variables from the dialog box/text boxes etc twice and have repetitive code I just need to either SAVE to the same file or if no filename exists I will use the SAVEAS.
However, if a filename DOES exist, then I want the SAVEAS to come up when the SAVEAS menu is clicked.
I do not recall how to differentiate how a menu was clicked with %BM_CLICK..???
Case %IDM_SAVE, %IDM_SAVEAS
IF WAS CLICKED IDM_SAVEAS Then always show dialog box else just save.
Thanks!
Scott
Comment