Customizing print preview
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Customizing print preview

  1. #1
    Join Date
    Jan 2009
    Posts
    192

    Customizing print preview

    Hi all of you.

    I intend to customize the print preview, after what MSDN said:
    https://msdn.microsoft.com/en-us/library/aabc3hc6.aspx
    And I have tried in MFC feature pack this solution ... but I get an mixed dialogbar for print-preview:
    http://imgur.com/a/SFNID
    Strange mix of MFC feature pack print preview dialogbar, and my custom print preview dialogbar ... I attach the test VS2008 project below.

    It is possible to customize the print-preview in MFC feature pack apps ?
    Attached Files Attached Files
    Last edited by mesajflaviu; June 4th, 2017 at 01:22 AM.

  2. #2
    Join Date
    Jan 2009
    Posts
    192

    Re: Customizing print preview

    Another solution would be using CBasePane::HideInPrintPreviewMode:
    https://msdn.microsoft.com/en-us/lib...intpreviewmode
    but when CDockablePane is part of CChildFrame, is simply not working ...

  3. #3
    Join Date
    Jan 2009
    Posts
    192

    Re: Customizing print preview

    The strange thing is that call:
    Code:
    class CPropertiesWnd : public CDockablePane
    {
    // Construction
    public:
    	CPropertiesWnd();
    
    	void AdjustLayout();
    	virtual BOOL HideInPrintPreviewMode() const {return FALSE;}
    ....
    is working in SDI app, when CDockablePane is part of CMainFrame ... but when CDockablePane is part of CChildFrame, isn't working (see the attachment from my first post) ...
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)