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

C / C++ / MFC

 
GeneralRe: MultiDocTemplate Pin
Mark Salsbery30-Oct-06 18:26
Mark Salsbery30-Oct-06 18:26 
GeneralRe: MultiDocTemplate Pin
keyurbhatnagar30-Oct-06 19:09
keyurbhatnagar30-Oct-06 19:09 
QuestionEdit Pin
Sunil P V30-Oct-06 0:07
Sunil P V30-Oct-06 0:07 
AnswerRe: Edit Pin
uday kiran janaswamy30-Oct-06 1:19
uday kiran janaswamy30-Oct-06 1:19 
GeneralRe: Edit Pin
Sunil P V30-Oct-06 2:01
Sunil P V30-Oct-06 2:01 
AnswerRe: Edit Pin
James R. Twine30-Oct-06 5:19
James R. Twine30-Oct-06 5:19 
GeneralRe: Edit Pin
Sunil P V30-Oct-06 17:44
Sunil P V30-Oct-06 17:44 
QuestionInvalidating a rect Pin
RadPC29-Oct-06 23:55
RadPC29-Oct-06 23:55 
Hi.

I want to move a picture control withouth redrawing the whole window. I've searched on how to do it and i've seen several techniques, but i think that the easiest for me is by invalidating the rectangle i want to update.

So, i do something like this:

CRect rect1,rect2(200,200,300,300);
m_picture.GetWindowRect(rect1);
m_picture.MoveWindow(rect2,FALSE);
InvalidateRect(rect1);
InvalidateRect(rect2);

Where m_picture is my picture control. It seems that it redraws the new position, but it doesn't erase the old one (so, there are two pictures in the window). Of course, invalidating the whole window works, but i just want to update that zone.

I've tried using ClientToScreen and ScreenToClient, in case the coordinates were wrong, but with no success.

Somebody can help me?
Thanks in advance,
Rad.
AnswerRe: Invalidating a rect Pin
Hamid_RT29-Oct-06 23:59
Hamid_RT29-Oct-06 23:59 
GeneralRe: Invalidating a rect Pin
RadPC30-Oct-06 0:14
RadPC30-Oct-06 0:14 
AnswerRe: Invalidating a rect Pin
Blake Miller30-Oct-06 4:02
Blake Miller30-Oct-06 4:02 
QuestionGet HBITMAP from JPEG/JPG Pin
QuickDeveloper29-Oct-06 23:25
QuickDeveloper29-Oct-06 23:25 
AnswerRe: Get HBITMAP from JPEG/JPG Pin
Hamid_RT29-Oct-06 23:56
Hamid_RT29-Oct-06 23:56 
Questionhow to access a COM component from ASP.net? Pin
voorugonda prashanth29-Oct-06 23:08
voorugonda prashanth29-Oct-06 23:08 
Questionsyntax in using for_each() on lists. Pin
minkowski29-Oct-06 22:46
minkowski29-Oct-06 22:46 
AnswerRe: syntax in using for_each() on lists. Pin
Niklas L29-Oct-06 23:02
Niklas L29-Oct-06 23:02 
QuestionGDI handles Pin
Waldermort29-Oct-06 22:24
Waldermort29-Oct-06 22:24 
AnswerRe: GDI handles Pin
Mark Salsbery30-Oct-06 5:37
Mark Salsbery30-Oct-06 5:37 
GeneralRe: GDI handles Pin
Waldermort30-Oct-06 6:47
Waldermort30-Oct-06 6:47 
QuestionCDialog in MDI Pin
baerten29-Oct-06 22:07
baerten29-Oct-06 22:07 
AnswerRe: CDialog in MDI Pin
Hamid_RT29-Oct-06 23:03
Hamid_RT29-Oct-06 23:03 
GeneralRe: CDialog in MDI Pin
baerten29-Oct-06 23:06
baerten29-Oct-06 23:06 
GeneralRe: CDialog in MDI Pin
Hamid_RT29-Oct-06 23:57
Hamid_RT29-Oct-06 23:57 
GeneralRe: CDialog in MDI [modified] Pin
baerten30-Oct-06 0:15
baerten30-Oct-06 0:15 
GeneralRe: CDialog in MDI Pin
David Crow30-Oct-06 3:22
David Crow30-Oct-06 3:22 

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.