Posts: 262
Threads: 63
Joined: Nov 2005
I can not seem to get this right. I want to have the program ask “do you want to save your work but the best I can do is close the program without saving. Please tell me what I am doing wrong?
Macro
,case 1014 ;; Menu File>>Exit
,
,,SendMessage(id(3 hDlg) WM_QUIT 0 0)
Macro
,&Print : 103 0 3
,-
,E&xit : 1014 0 0
Posts: 12,072
Threads: 140
Joined: Dec 2002
Then probably use mes. Why WM_QUIT?
Posts: 262
Threads: 63
Joined: Nov 2005
IT is for an EXE program and I need to save it as a;
Macro
(0 s "Text files[]*.txt[]Image files[]*.bmp;*.gif[]All Files[]*.*[]")
Posts: 12,072
Threads: 140
Joined: Dec 2002
sorry, I don't understand something here
why SendMessage WM_QUIT should ask do you want to save...
Posts: 262
Threads: 63
Joined: Nov 2005
I am just trying to get a better handle on API and I thought that would be the only way to do it.
Posts: 12,072
Threads: 140
Joined: Dec 2002
Why not use
mes ...
OpenSaveDialog ...
s.setfile ...
?
Posts: 262
Threads: 63
Joined: Nov 2005
Very nice but how do I find out if there have been any changes to the document so I can call this if there has been any unsaved work.
Posts: 12,072
Threads: 140
Joined: Dec 2002
Don't know, but programs often display * in title bar if the document is not saved.
Posts: 262
Threads: 63
Joined: Nov 2005
I will find out and let you know.