The attached patch makes the following changes to notepad:
- Raplace the page setup dialog with a modified copy from comdlg32. Use PageSetupDlg and a hook
function to bring the dialog on screen instead of DialogBox and a dialog procedure. With this,
PageSetupDlg can do most of the work (init the controls for example).
- Save the returned hDevMode and hDevNames to two global variables, so we can use them in later
calls to page setup and print.
- Include header, footer and page margins when saving/loading settings.
- Remove printer setup from the file menu (and related code/resources) since it isn't needed anymore.