Memory.CreateWindowSubClass

number Memory.CreateWindowSubClass ( 

number  Handle,

number  ID,

string  Function )

Description

Create a subclass for program and objects and everything tat have handle.

Parameters

Handle

(number) Handle of windows, objects, ...

ID

(number) Unique number for your subclass this is require for free it.

Function

(string) Name of function that you want do subclasses jobs.

Note on CallBack Function: Every time your callback function have 4 parameter : (hWnd, uMsg, wParam, lParam).
hWnd is your handle of object that you subclass it this mean you can create one callback function for many objects and seprate them with their handles.
uMsg is some messages that windows send to your object like close, maximize, minimize, moving or any other these message start with WM_*(search them in MSDN or Google).
wParam and lParam is some data that send with message for examp when WM_MOVE in message comes wParam is null and lParam is position of object.
In the end you dont want return anything until you want return something so be aware on this.

Returns

(number) Returns 1 if its equal or 0 if it doesn't match.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

Example

function test(hWnd, uMsg, wParam, lParam) --do something --do something end Memory.CreateWindowSubClass(Application.GetWndHandle(), 0, "test"); Memory.FreeWindowSubClass(0);

See also:  Related Actions

Сайт управляется системой uCoz