Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: [edit: most problems fixed, one problem remaining] Invalidate rectangle follow up, flickering and no movement Pin
Richard MacCutchan10-Dec-23 2:20
mveRichard MacCutchan10-Dec-23 2:20 
Do not call InvalidateRect and UpdateWindow from inside your WM_PAINT handler. You should be setting the rectangle's dimensions from outside the handler, and then calling InvalidateRect to cause the update to happen. Then when you get to the drawing code you get the rectangle details from inside the Paintstruct. Also using hardcoded values like you show above is not the correct way to do it.
GeneralRe: [edit: most problems fixed, one problem remaining] Invalidate rectangle follow up, flickering and no movement Pin
Calin Negru10-Dec-23 4:48
Calin Negru10-Dec-23 4:48 
Questiondownload a web page Pin
mike74116-Dec-23 4:30
mike74116-Dec-23 4:30 
AnswerRe: download a web page Pin
Mircea Neacsu6-Dec-23 5:00
Mircea Neacsu6-Dec-23 5:00 
GeneralRe: download a web page Pin
mike74116-Dec-23 13:28
mike74116-Dec-23 13:28 
GeneralRe: download a web page Pin
Mircea Neacsu6-Dec-23 14:18
Mircea Neacsu6-Dec-23 14:18 
AnswerRe: download a web page Pin
jschell6-Dec-23 6:52
jschell6-Dec-23 6:52 
AnswerRe: download a web page Pin
Gerry Schmitz6-Dec-23 7:28
mveGerry Schmitz6-Dec-23 7:28 
Questioncopying a file in C++17 Pin
mike74115-Dec-23 21:36
mike74115-Dec-23 21:36 
AnswerRe: copying a file in C++17 Pin
Richard MacCutchan5-Dec-23 22:07
mveRichard MacCutchan5-Dec-23 22:07 
AnswerRe: copying a file in C++17 Pin
jschell6-Dec-23 7:04
jschell6-Dec-23 7:04 
Questionprintf without stdio.h Pin
mike74115-Dec-23 5:21
mike74115-Dec-23 5:21 
AnswerRe: printf without stdio.h Pin
Mircea Neacsu5-Dec-23 5:31
Mircea Neacsu5-Dec-23 5:31 
GeneralRe: printf without stdio.h Pin
mike74115-Dec-23 16:23
mike74115-Dec-23 16:23 
GeneralRe: printf without stdio.h Pin
Mircea Neacsu5-Dec-23 16:42
Mircea Neacsu5-Dec-23 16:42 
AnswerRe: printf without stdio.h Pin
Victor Nijegorodov5-Dec-23 5:32
Victor Nijegorodov5-Dec-23 5:32 
AnswerRe: printf without stdio.h Pin
k50545-Dec-23 6:02
mvek50545-Dec-23 6:02 
GeneralRe: printf without stdio.h Pin
jschell6-Dec-23 7:07
jschell6-Dec-23 7:07 
Questioncopying a file Pin
mike74115-Dec-23 3:24
mike74115-Dec-23 3:24 
AnswerRe: copying a file Pin
Mircea Neacsu5-Dec-23 3:32
Mircea Neacsu5-Dec-23 3:32 
AnswerRe: copying a file Pin
Richard MacCutchan5-Dec-23 4:05
mveRichard MacCutchan5-Dec-23 4:05 
AnswerRe: copying a file Pin
k50545-Dec-23 4:42
mvek50545-Dec-23 4:42 
QuestionMyth of a Myth? Pin
jschell4-Dec-23 3:38
jschell4-Dec-23 3:38 
AnswerRe: Myth of a Myth? Pin
Richard MacCutchan4-Dec-23 4:57
mveRichard MacCutchan4-Dec-23 4:57 
AnswerRe: Myth of a Myth? Pin
Mircea Neacsu4-Dec-23 5:05
Mircea Neacsu4-Dec-23 5:05 

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.