Answer the question
In order to leave comments, you need to log in
Scrolling issue in MFC?
Hello, there was a problem connecting a scrollbar to a window. In general, a graph is drawn in the window, while the coordinates are shifted using the following lines:
CRect r;
GetClientRect(&r);
int x = r.Width()/2;
int y = r.Height()/2;
dc->SetMapMode(MM_ISOTROPIC);
dc->SetWindowExt(1,-1);
dc->SetViewportOrg(x,y);
dc->SetViewportExt(1,1);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question