BOOL DrvSetPixelFormat(
IN SURFOBJ *pso, | |
IN LONG iPixelFormat, | |
IN ULONG hwnd | |
); |
DrvSetPixelFormat sets the pixel format of a window.
The return value is TRUE if the function is successful. Otherwise, it is FALSE, and an error code is logged.
Setting the pixel format more than once can result in complications for the Window Manager and for multi-threaded applications. Consequently, the pixel format of a window can be set only once and must remain unchanged.