quote:
Originally posted by Matty
If I am not mistaken its recommended to use window messages over other apis or is it vice versa I forget.
Depends on what you wanna do.
----------------------------------
If the window’s update region is not empty,
UpdateWindow sends a WM_PAINT message directly to the window procedure of the specified window, bypassing the application queue. If the update region is empty, no message is sent. This is the preferred method since it does internal checks on its own etc, all other methods are derived from this one in one way or the other...
The
RedrawWindow function updates the specified rectangle or region in a window's client area. If the intention is to redraw the entire window, you better use UpdateWindow...
The
WM_PAINT message is sent when the system or another application makes a request to paint a portion of an application's window. The message is sent when the
UpdateWindow or
RedrawWindow function is called...
InvalidateRect adds a rectangle to the specified window’s update region. The update region represents the portion of the window’s client area that must be redrawn. The invalidated areas accumulate in the update region until the region is processed when the next WM_PAINT message occurs or until the region is validated by using the ValidateRect function. InvalidateRect on its own does not repaint anything...