Print Page | Close Window

Print Preview crash with the tab bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12460
Printed Date: 24 June 2025 at 12:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Print Preview crash with the tab bar
Posted By: FrankC
Subject: Print Preview crash with the tab bar
Date 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



Replies:
Posted By: Oleg
Date Posted: 17 October 2008 at 2:31am
Hi,
VisualStudio version ? Toolkit Version ? Attached sample ? :)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: FrankC
Date 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


Posted By: Oleg
Date 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


Posted By: FrankC
Date Posted: 20 October 2008 at 9:54am

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

Thanks for the help,

Frank



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net