Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 28th, 2005, 10:49 AM
Authorized User
 
Join Date: Jul 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default MFC-hELP

Hi,

I have came across a problem & is behind it for somedays,but in vein.
Thought that you would be the right person to ask..

Iam working under windows ,using vc++.

My problem comes up when I use zooming & doublebuffering(for preventing flickering).

Have isolated the problem & had put in a small test application.

my problem is when the "Zoomfactor" is made to 10,I dont see anything in my view.(The problem is not that,it is too small to be seen.I have checked that in my actual project 100%).


Iam attaching a small test application along with this.

One has to look at only the "pagesView.cpp" file

In "CpagesView::OnPrepareDC" one can set different Zoom values to the "m_iZoomFactor" variable.


TemporaryDc is created locally in "CpagesView::OnDraw"

Also,if there need to be any improvements to be made in the "memdc" class.

some one pointed out that,When I use the following statement in my Medc.h,before creating the compatible Dc,the bitmap created is too large & that may cause a problem.

But If I comment this one out in my code,I don't see the full rectangle representing the pageSize.

//Client Rectangle.
m_clientRect = *pRect;
pDC->DPtoLP(&m_clientRect);


Hope u could give me a hand on this regard,If possible

Thanks....






Similar Threads
Thread Thread Starter Forum Replies Last Post
MFC and Windows Forms elvisfeverr Visual C++ 2 July 12th, 2008 12:28 AM
Using MFC CTree Control Bill_Thompson Visual C++ 0 November 27th, 2007 05:00 AM
Problems with MFC mamutgargoyle Visual C++ 2005 1 February 13th, 2006 11:15 AM
COM Using MFC vxp4799 Visual C++ 0 May 12th, 2005 08:16 AM
use MFC in WIN32API i_anubhav Visual C++ 1 June 20th, 2003 02:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.