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....
|