I am trying to find a reliable way to control windows Wordpad, which I successfully embedded in application as a child window.
One command I would like to execute just after document was opened is "print preview". PostMessage seems to be a good tool to do it, yet I am struggling to find a reference of commands accepted by Wordpad without success, not to mention commands which will work on WindowsXP machines as well as Windows Vista, 7 and 8.
The list of commands I am particularly interested in is:
- Print Preview
- Close without saving (in a more elegant manner than killing the process)
Can somebody share some hints about controlling Wordpad using messages, or possibly in a different way?