Win_SetClassLong

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > Windows API >

Win_SetClassLong

 

Description

 

Replaces the specified 32-bit (long) value at the specified offset into the extra class memory or the WNDCLASSEX structure for the class to which the specified window belongs.

 

Syntax

 

n = Win_SetClassLong(hWnd, nIndex, NewLong)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the window

nIndex

Number

No

Specify one of the following values:

 

%GCL_CBCLSEXTRA

Sets the size, in bytes, of the extra memory associated with the class. Setting this value does not change the number of extra bytes already allocated.

%GCL_CBWNDEXTRA

Sets the size, in bytes, of the extra window memory associated with each window in the class. Setting this value does not change the number of extra bytes already allocated. For information on how to access this memory, see Win_SetWindowLong.

%GCL_HBRBACKGROUND

Replaces a handle to the background brush associated with the class.

%GCL_HCURSOR

Replaces a handle to the cursor associated with the class.

%GCL_HICON

Replaces a handle to the icon associated with the class.

%GCL_HICONSM

Replace a handle to the small icon associated with the class.

%GCL_HMODULE

Replaces a handle to the module that registered the class.

%GCL_MENUNAME

Replaces the address of the menu name string. The string identifies the menu resource associated with the class.

%GCL_STYLE

Replaces the window-class style bits.

%GCL_WNDPROC

Replaces the address of the window procedure associated with the class.

 

NewLong

Number

No

The new value to assign

 

Remarks

 

For additional info, please refer to MS documentation at: http://msdn.microsoft.com/en-us/library/ms633588(VS.85).aspx

 

Restrictions

 

See also

 

Examples