用STM_SETIMAGE设置ICON STM_SETIMAGE An application sends an STM_SETIMAGE message to associate a new image with a static control.To send this message, call the SendMessage function with the following parameters. SendMessage( (HWND) hWnd, // handle to destination window STM_SETIMAGE, // message to send (WPARAM) wParam, // image type (LPARAM) lParam // handle to image (HANDLE) );
STM_SETIMAGE
An application sends an STM_SETIMAGE message to associate a new image with a static control.To send this message, call the SendMessage function with the following parameters. SendMessage(
(HWND) hWnd, // handle to destination window
STM_SETIMAGE, // message to send
(WPARAM) wParam, // image type
(LPARAM) lParam // handle to image (HANDLE)
);