Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving a document
#1
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
Code:
Copy      Help
,case 1014    ;; Menu File>>Exit
,
,,SendMessage(id(3 hDlg) WM_QUIT 0 0)

Macro
Code:
Copy      Help
,&Print : 103 0 3
,-
,E&xit : 1014 0 0
#2
Then probably use mes. Why WM_QUIT?
#3
IT is for an EXE program and I need to save it as a;
Macro
Code:
Copy      Help
(0 s "Text files[]*.txt[]Image files[]*.bmp;*.gif[]All Files[]*.*[]")
#4
sorry, I don't understand something here
why SendMessage WM_QUIT should ask do you want to save...
#5
I am just trying to get a better handle on API and I thought that would be the only way to do it.
#6
Why not use

mes ...
OpenSaveDialog ...
s.setfile ...

?
#7
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.
#8
Don't know, but programs often display * in title bar if the document is not saved.
#9
I will find out and let you know.


Forum Jump:


Users browsing this thread: 1 Guest(s)