Print Preview and "x"-Button
-
Hey, how can I prevent closing my whole SDI-App when the "X"-button in PrintPreview is pressed. All works fine, when i push the close-botton (preview closes, and CView is shown) but not by presseing the "X"?
Obviously - don't click the "X" button :) Seriously, though, that "shouldn't" happen unless MFC thinks the window being closed is the application's "main window", as specified by the CWinThread::m_pMainWnd member... Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Obviously - don't click the "X" button :) Seriously, though, that "shouldn't" happen unless MFC thinks the window being closed is the application's "main window", as specified by the CWinThread::m_pMainWnd member... Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hey Mark, did the forums list/links above the threads change today, the order/organization, or did I pick a bad day to stop smoking crack?
led mike
Both! Looks like some new boards as well (well, at least one new one). Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Both! Looks like some new boards as well (well, at least one new one). Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: