Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
I am presuming you used ScerenToClient relative to the PARENT window, and not the picuture window?

This really should work, I think you still have a bug in your coordinates to the InvalidateRect.

Also, I think InvalidateRect on the child window's new position is redundant, as the MoveWindow already invalidates the destination for you, assuming you allowed the paint to occur:

If the bRepaint parameter is TRUE, the system sends the WM_PAINT message to the window procedure immediately after moving the window (that is, the MoveWindow function calls the UpdateWindow function). If bRepaint is FALSE, the application must explicitly invalidate or redraw any parts of the window and parent window that need redrawing.



Any sufficiently gross incompetence is nearly indistinguishable from malice.

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 
GeneralRe: CDialog in MDI Pin
Hamid_RT30-Oct-06 3:37
Hamid_RT30-Oct-06 3:37 
QuestionProblem with lib Pin
NorGUI29-Oct-06 22:01
NorGUI29-Oct-06 22:01 
AnswerRe: Problem with lib Pin
uusheikh29-Oct-06 22:17
uusheikh29-Oct-06 22:17 

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.