Programming |  Windows Programming |  BM_GETIMAGE

BM_GETIMAGE

Retrieves a handle to the image (icon or bitmap) associated with the button.

Syntax

To send this message, call the SendMessage function as follows.

    lResult = SendMessage(      // returns LRESULT in lResult     
       (HWND) hWndControl,      // handle to destination control     
       (UINT) BM_GETIMAGE,      // message ID     
       (WPARAM) wParam,         // = (WPARAM) () wParam;    
       (LPARAM) lParam          // = 0; not used, must be zero 
    );   

Parameters

Return Value

The return value is a handle to the image, if any; otherwise, it is NULL.

Message Information