Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with Adding a vector to my program Pin
Christian Graus27-Nov-02 11:54
protectorChristian Graus27-Nov-02 11:54 
GeneralRe: Problem with Adding a vector to my program Pin
Rickard Andersson2028-Nov-02 3:31
Rickard Andersson2028-Nov-02 3:31 
GeneralRe: Problem with Adding a vector to my program Pin
Alvaro Mendez27-Nov-02 12:23
Alvaro Mendez27-Nov-02 12:23 
QuestionMSChart.ocx Axis Scaling at runtime ? Pin
Koep27-Nov-02 6:34
Koep27-Nov-02 6:34 
GeneralCControlBar ranting... Pin
Maximilien27-Nov-02 5:34
Maximilien27-Nov-02 5:34 
GeneralRe: CControlBar ranting... Pin
Shog927-Nov-02 5:50
sitebuilderShog927-Nov-02 5:50 
GeneralGDI Question Pin
Selevercin27-Nov-02 5:15
Selevercin27-Nov-02 5:15 
GeneralRe: GDI Question Pin
techno_guru27-Nov-02 5:36
techno_guru27-Nov-02 5:36 
Bonjour,

I don't where you put this code but you need to put it on the OnPaint event like this :

void CTNSImageCtrl::OnPaint()
{
PAINTSTRUCT ps;

CDC *cDC = BeginPaint(&ps);

// SetMapMode(cDC->m_hDC, MM_LOMETRIC);
SetWindowOrgEx(cDC->m_hDC, 0, 0, NULL);
SetViewportOrgEx(cDC->m_hDC,
-GetScrollPos(SB_HORZ),
-GetScrollPos(SB_VERT),
NULL);

OnDraw(cDC, &ps.rcPaint, NULL);

EndPaint(&ps);
}

Here is a sample where i just move not scale for the scale i use another way !!!


Simplicity is the supreme sophistication.
-------------------------------------------
http://www.borie.org/
GeneralRe: GDI Question Pin
Rick York27-Nov-02 5:55
mveRick York27-Nov-02 5:55 
GeneralRe: GDI Question Pin
Selevercin27-Nov-02 6:32
Selevercin27-Nov-02 6:32 
GeneralRe: GDI Question Pin
Rage27-Nov-02 20:39
professionalRage27-Nov-02 20:39 
QuestionHow do I access the View Pin
NickOne27-Nov-02 4:47
NickOne27-Nov-02 4:47 
GeneralPb with modeless Dialog in VS Add-in Pin
cnaudeau27-Nov-02 4:26
cnaudeau27-Nov-02 4:26 
GeneralEnable EditMenu for RichEdit Pin
Joerg Wiedenmann27-Nov-02 2:40
Joerg Wiedenmann27-Nov-02 2:40 
GeneralAbout Ole DB Pin
deffer27-Nov-02 1:50
deffer27-Nov-02 1:50 
QuestionHow can I do “text wrapping” for a text in a button control Pin
Hamzeh27-Nov-02 1:07
Hamzeh27-Nov-02 1:07 
AnswerRe: How can I do “text wrapping” for a text in a button control Pin
Jason Henderson27-Nov-02 3:11
Jason Henderson27-Nov-02 3:11 
AnswerRe: How can I do “text wrapping” for a text in a button control Pin
Roger Stewart27-Nov-02 3:24
professionalRoger Stewart27-Nov-02 3:24 
GeneralHelp on CryptoAPI under Windows 9x Pin
Anonymous27-Nov-02 0:58
Anonymous27-Nov-02 0:58 
GeneralCWnd::DestroyWindow assertion Pin
Brian van der Beek27-Nov-02 0:51
Brian van der Beek27-Nov-02 0:51 
GeneralRe: CWnd::DestroyWindow assertion Pin
Rage27-Nov-02 1:37
professionalRage27-Nov-02 1:37 
GeneralRe: CWnd::DestroyWindow assertion Pin
Brian van der Beek27-Nov-02 1:43
Brian van der Beek27-Nov-02 1:43 
GeneralRe: CWnd::DestroyWindow assertion Pin
Rage27-Nov-02 1:57
professionalRage27-Nov-02 1:57 
GeneralRe: CWnd::DestroyWindow assertion Pin
Brian van der Beek27-Nov-02 2:04
Brian van der Beek27-Nov-02 2:04 
GeneralRe: CWnd::DestroyWindow assertion Pin
dabs27-Nov-02 2:44
dabs27-Nov-02 2:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.