About OnSetPreviewMode |
Post Reply |
Author | |
zaozao
Groupie Joined: 09 February 2009 Location: Japan Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 18 March 2009 at 11:28am |
Hi.
I have a trouble in a print preview.
I built the sample project(Skin MDI Sample and Print Preview Sample) with Visual Studio.net2003.
When print preview mode has been enabled, commandbars was not hide.
In the project, CMainFrame::OnSetPreviewMode() wasn't called.
By the way, When I built the project with Visual Studi 6.0, CMainFrame::OnSetPreviewMode() was called.
And commandbars was hide.
Please teach me how to hide commandbars with Visual Studio.net2003.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Its thing of Visual Studio .NET - create standard MFC project and you will see same.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
zaozao
Groupie Joined: 09 February 2009 Location: Japan Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Thank you oleg.
But I cannot solve this problem yet.
Because I used your sample projects, I don't know how can I create standard MFC project.
Have you ever build the sample project(ex. PrintPreview sample) with Visual Studio.net 2003 and confirmed the preview screen?
Please tell me about concrete creating method.
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Had the same problem, will post our solution in a few hours. (Don't have the source at home) http://forum.codejock.com/forum_posts.asp?TID=12286 |
|
Codejock support
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
void CMainFrame::OnSetPreviewMode(BOOL bPreview, CPrintPreviewState *pState)
{ // Toggle CommandBars GetCommandBars()->OnSetPreviewMode(bPreview); // Toggle Tab Client m_wndClient.ShowWorkspace(!bPreview); // Toggle Docking Panes. m_dockingPaneFactory.GetPaneManager().OnSetPreviewMode(bPreview); #if _MSC_VER < 1400 inherited::OnSetPreviewMode(bPreview, pState); #endif } Of course you have to change the lines in red. |
|
Codejock support
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |