I have started with windows programming.I am now in the painting and repainting part.When the WM_PAINT is called,the entire client window is supposedly validated,does that meaen the window comes to the foreground and becomes the active one? Or have I misinterpreted the meaning of validation of window? Please help.
Thanks in advance,
Prasanna.

The window doesn't get the input focus in case of a WM_PAINT message rather it invalidates a specific region of itself and redraws it ( like when you drag another window on and off the surface of your main window ) or draws the specific child windows that are created and owned by the main window (buttons , edit controls) as much as text bitmaps etc.