Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Print preview bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Print preview bug

 Post Reply Post Reply
Author
Message
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: Print preview bug
    Posted: 29 September 2008 at 11:41am
CXTPFrameWndBase::OnSetPreviewMode has to be virtual!

PrintPreview sample built with VC60:



PrintPreview sample built with VC80:


Codejock support
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: 29 September 2008 at 2:39pm

Hi,

Its not related to OnSetPreviewMode.
Create simple MFC projects in vc6 and vc80 and you will see same.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2008 at 3:05pm
Originally posted by oleg oleg wrote:

Create simple MFC projects in vc6 and vc80 and you will see same.


You're right

But OnSetPreviewMode should still be virtual because otherwise CMainFrame::OnSetPreviewMode will never be called in VC80.

I would like to keep the VC60 behaviour.

Codejock support
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: 30 September 2008 at 5:17am
Hi,
It is virtual.
If there is no virtual keyword it doesn't mean its not virtual ;-)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.