SetPicturePosition method


Available for Button objects.

Prototype

SetPicturePosition Proto hWnd:HWND, lPosition:LONG

Syntax

Invoke SetPicturePosition, hWnd, lPosition

Function

Sets the PicturePosition property for an object.

Parameters

hWnd

Handle to the object.

lPosition

A LONG value specifying the new picture position (related to the text) for the button. It can be one of the following values:

0  Up
1  Down
2  Left
3  Right

Return value

Eax returns TRUE if succesful, or FALSE if not.


REMARKS: This method has no effect if the OwnerDraw property is set to FALSE.