SetPicture method
Available for Window, MDIWindow, DialogBox, Button, Picture and Image objects.
Prototype
SetPicture Proto hWnd:HWND, hPicture:DWord
Syntax
Invoke SetPicture, hWnd, hPicture
Function
Sets the Picture property for an object (see REMARKS).
Parameters
hWnd
Handle to the object.
hPicture
A DWord value specifying the new picture for the object.
Return value
Eax returns TRUE if succesful, or FALSE if not.
REMARKS: The hPicture parameter may be an existing
resource ID or the handle to an image (bitmap, icon or cursor). First, Easy Code tries to load it as a resource
(only if it is less than 65536) and, if it fails, then it is processed as a handle.