Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Sarriss wrote:
im still trying to get it so when i bring it as the focus window it redraws and doesnt leave half of the window with the image of the window that was infront of it


Did you specify NULL for the background brush in the window class?
If so, you are responsible for drawing the window background yourself.

The system will give you the messages - you just need to
respond to them correctly.

I would start simple - do nothing in your window proc except call the
default window proc. If that doesn't work right then you haven't
implemented your window proc correctly.

Then maybe add in a simple WM_PAINT handler:
case WM_PAINT:
   {
      HDC hdc;
      PAINTSTRUCT ps;
      hdc = BeginPaint( hWnd, &ps );

      // draw on the HDC here!

      EndPaint( hWnd, &ps );
   }
   return 0;
   break;


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
GeneralRe: [Solved] create directory hierarchy Pin
MANISH RASTOGI2-Oct-08 19:12
MANISH RASTOGI2-Oct-08 19:12 
GeneralRe: [Solved] create directory hierarchy Pin
MANISH RASTOGI2-Oct-08 19:04
MANISH RASTOGI2-Oct-08 19:04 

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.