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

C / C++ / MFC

 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 3:40
Sarriss1-Oct-08 3:40 
GeneralRe: Redraw Pin
Steve Thresher1-Oct-08 3:44
Steve Thresher1-Oct-08 3:44 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 3:56
Sarriss1-Oct-08 3:56 
GeneralRe: Redraw Pin
Steve Thresher1-Oct-08 4:09
Steve Thresher1-Oct-08 4:09 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 4:18
Sarriss1-Oct-08 4:18 
GeneralRe: Redraw Pin
Steve Thresher1-Oct-08 4:20
Steve Thresher1-Oct-08 4:20 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 4:22
Sarriss1-Oct-08 4:22 
GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 5:11
Mark Salsbery1-Oct-08 5:11 
What Steve meant to say was NO NO NO!!

You're causing infinite recursive WM_PAINT messages there.


Sarriss wrote:
but even without the WM_PAINT and using the updatewindow etc it still causes overlapping and no redrawing


No redrawing will be done unless you do some drawing.
If you call BeginPaint/EndPaint without doing any drawing, then
even if you pass the message to the default window proc, nothing
will happen.

You need to either draw the window contents or let the default
window proc draw the window contents in response to WM_PAINT.

Of course, you can always let the default window proc do its drawing
then draw on top of that if you'd like.

Just don't call any invalidate/update/redraw window functions from your
WM_PAINT handler!!
All those messages cause WM_PAINT messages.

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Redraw Pin
Sarriss1-Oct-08 5:13
Sarriss1-Oct-08 5:13 
GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 5:31
Mark Salsbery1-Oct-08 5:31 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 6:29
Sarriss1-Oct-08 6:29 
GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 6:53
Mark Salsbery1-Oct-08 6:53 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 7:03
Sarriss1-Oct-08 7:03 
GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 7:12
Mark Salsbery1-Oct-08 7:12 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 7:25
Sarriss1-Oct-08 7:25 
GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 7:34
Mark Salsbery1-Oct-08 7:34 
QuestionRe: Redraw Pin
Mark Salsbery1-Oct-08 7:36
Mark Salsbery1-Oct-08 7:36 
AnswerRe: Redraw Pin
Sarriss1-Oct-08 9:49
Sarriss1-Oct-08 9:49 
GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 10:38
Mark Salsbery1-Oct-08 10:38 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 11:06
Sarriss1-Oct-08 11:06 
Questioncreate directory hierarchy Pin
MANISH RASTOGI1-Oct-08 1:38
MANISH RASTOGI1-Oct-08 1:38 
AnswerRe: create directory hierarchy Pin
toxcct1-Oct-08 2:03
toxcct1-Oct-08 2:03 
JokeRe: create directory hierarchy Pin
Roger Stoltz1-Oct-08 2:41
Roger Stoltz1-Oct-08 2:41 
JokeRe: create directory hierarchy Pin
toxcct1-Oct-08 2:42
toxcct1-Oct-08 2:42 
JokeRe: create directory hierarchy Pin
CPallini1-Oct-08 5:37
mveCPallini1-Oct-08 5:37 

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.