Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Print Preview crash with the tab bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Print Preview crash with the tab bar

 Post Reply Post Reply
Author
Message
FrankC View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankC Quote  Post ReplyReply Direct Link To This Post Topic: Print Preview crash with the tab bar
    Posted: 16 October 2008 at 4:00pm
 
Please help:
 

As you can see the above Print PreView shot, the tab bar appears during the print preview mode.  If click the x button on left of the tab bar, the application will crash.

 
Thanks,
Frank
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2008 at 2:31am
Hi,
VisualStudio version ? Toolkit Version ? Attached sample ? :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
FrankC View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankC Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2008 at 9:37am
VS C++ 6.0. Toolkit Version 12.0.2.
 
The sample was self made by the Toolkit pro AppWizard installed inside VC 6.0.
 
Thanks,
Frank
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2008 at 6:49am
Hi,
 
Add this code:
 
void CMainFrame::OnSetPreviewMode(BOOL bPreview, CPrintPreviewState* pState)
{
 CXTPMDIFrameWnd::OnSetPreviewMode(bPreview, pState);
 m_MTIClientWnd.ShowWorkspace(!bPreview);
}
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
FrankC View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankC Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2008 at 9:54am

Yes, I learned the same trick from the Toolkit provideded sample.

Thanks for the help,

Frank
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.