|
-
April 29th, 1999, 11:24 AM
#1
Print Preview Close Button
Good Morning
I want to close my app as soon as the user presses the CLOSE Button on the print Preview screen.
How do I achieve this?
Any Suggestions would be appreciated.
Stephan
-
April 29th, 1999, 05:05 PM
#2
Re: Print Preview Close Button
Use the ClassWizard to handle the ID_FILE_PRINT_PREVIEW message from your menu/toolbar item. Then, in your handler, do this:
// Respond to the menu item.
void CMyView::OnFilePrintPreview()
{
CFormView::OnFilePrintPreview();
AfxGetMainWnd()->PostMessage(WM_CLOSE);
}
HTH.
LA Leonard - http://www.DefinitiveSolutions.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|