Microsoft Win32 Q&A

  1. How common controls are manipulated:

    Details

    Windows common controls are created as windows. Changing appearence of a common control involves sending a message to control window specifing what we want to change in control by message. Parameters of message are passed by WPARAM and LPARAM. Content of parametes varies with a message. Having a handle to control window hControl we send a message by:

    SendMessage( hControl, <message>, (WPARAM) wParam, (LPARAM) lParam )

  2. What is the difference between LoadBitmap and LoadImage API functions?:

    Details

    The difference is quite important. LoadImage unlike LoadBitmap lets load transparent images that automatically take as their background the color of a area where image is to be placed. Additionally LoadImage loads not only BMP-files, but also ICO-files.

© (c) 2001, Stanislav Malevanny