Originally posted by: Sachin
I am using recttracker to have movabale images.
Help is very urgently needed
Sachin
Hi,
Zooming in and out is taking place now.
But if i zoom out and then move the rectangle again if i zoom in with a larger percentage then the image gets out of the screen. How can i handle this.
Thanks in Advance
Originally posted by: Hesham Desokey
I have the proble of drawing text lines with specified font and when scaling using setviewportext ans setwindowext the font didn't scaled correctly and the text loose its aspect ratio with the displayed pages
I realy need help in this issue
Originally posted by: Alex
m_hZoomCursor = ::LoadCursor(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDC_ZOOMCURSOR));
will fail (return NULL) if the CZoomView is stored in a dll and not in the main .exe project, because of an invalide hInstance.
just remplace the ligne by :
and it will work
In the constructor of CZoomView, the following operation
m_hZoomCursor = AfxGetApp()->LoadCursor(IDC_ZOOMCURSOR);
Reply
Originally posted by: Rajasekhar
Hello!
I am developing an SDI application in eVC 3.0 using document/view architecture.My main view is CView.It's working fine.I have one more screen with base calss as CScrollView.In the desktop version(VC++ 6.0)CSrollView working fine, automatically displaying whatever is there at the end.But in eVC it's not showing properly.When i moved the scroll bars it's redrawing again.But what i want is it should not be redrawn when i moved the scroll bar.
May i have to do any manipulations to display the lines or text only where i drawn them.
Please help me in this regard.
Please send mail to chavasekhar@rediffmail.com
Thanking you,
Rajasekhar
ReplyOriginally posted by: Jongmin
I did build in VC++ 6.0 but cannot link resulting in
LINK : fatal error LNK1104: cannot open file "olecli32.lib"
Does anybody works right?
Originally posted by: Jim Dill
I find your code works better if you change the CWindowDC's to CClientDC's. Otherwise under some circumstances image can leak over the scrollbars.
Another thing: I found it necessary to call SetWindowOrg from my code, and comment out your assertion that it was set to (0,0). Doing this, I was able to mimic the zoomview in a memory dc, giving me a zoomable offscreen bitmap.
Otherwise, it's a great and useful class, thanks.
-- Jim
Originally posted by: Steeve Richard
The computer would freeze when the user closed a document
m_hZoomCursor = NULL;
This prevents the destructor from calling DestroyCursor()
Here's the modified constructor:
CZoomView::CZoomView()
// Load the zoom cursor
// Default to centering on full fit
I found a slight omission in the constructor that caused
the destructor to call DestroyCursor() with an invalid
handle.
while more than one documents were opened.
In my case, the bug only showed in the release version.
Add the following line to the constructor:
with an invalid handle.
: CScrollView()
{
// Init zoom mode to nothing
m_zoomMode = MODE_ZOOMOFF;
m_bCaptured = FALSE;
m_zoomScale = 1.0;
m_ptDragRect.SetRectEmpty();
m_hZoomCursor = NULL; // ADDED BY STEEVE RICHARD TO FIX BUG DURING DESTRUCTION.
// THIS PREVENTS THE DESTRUCTOR FROM CALLING DestroyCursor()
// WITH AN INVALID HANDLE.
// BUG HAPPENED ONLY IN RELEASE VERSION, WHEN THE USER CLOSED
// A DOCUMENT WHILE MORE THAN ONE DOCUMENTS WERE OPENED.
//m_hZoomCursor = ::LoadCursor(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDC_ZOOMCURSOR));
m_bCenter = TRUE;
} // CZoomView
Yours, Steeve Richard
Originally posted by: Tatvik Gupta
My views are derived from CZoomView.
When I zoom in/out the views are not updated correctly.
Please Help.
I have an SDI application. The main frame has a dynamic
splitter window as the client ( Thanks to code gurus) window.
Although the figure ( just a rectangle) zooms in/out;
it is not the correct part that shows. Suppose I select
the bottom left corner by clicking and dragging the mouse;
the picture after zoom still contains the top of the
rectangle.
Originally posted by: Peter Surma
Not quite what I was looking for.
I have a form with dynamically created controls on it, is there a way to zoom in/out of controls on a form?
ReplyOriginally posted by: Yoh-hei
Hello:
Here I think when zoom in/out the scroll bar define
again ,and the Graphic redraw again is no good.
If the graphic is very big graphic.(that's said need
read many many data)The result is graphic flash.when move
the graphic use scrollbar, the graphic flash duickly.It's
no good!
Who can give me any advice???