Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WWindow:RegisterClass() Method
Register a window class, if needed
------------------------------------------------------------------------------

Syntax
<oWnd>:RegisterClass( [ <hInst> ] , [ <hIcon> ] , [ <hCursor> ] ,
                      [ <hBgBrush> ] )   -->   self

Arguments
<hInst> is the handle of the instance of the application.  (It
defaults to the value returned by the _GetInstance() function.)

<hIcon> is a handle to the icon to use if a window of the
class is minimised.   (Use NIL for the default.)

<hCursor> is a handle to the cursor to use whenever the mouse
position is within the client area of a window of the new
class.  (Use NIL for the default.)

<hBgBrush> is a handle to the brush to be used for the
background of any windows of the new class.  You can use your
own brush handle, or one of the COLOR_* values defined in
WINDOWS.CH, in which case you have to add one (e.g.
COLOR_APPWORKSPACE + 1), or NIL or zero (0) for the default.

Returns
SELF.

Description
This method is a wrapper that passes the values of the
properties ClassStyle, ClassName, WndProc and Messages along
to the RegisterClass() function.

This method is called automatically by the Application
Classes; usually you do not call it directly.

Example


See Also: RegisterClass()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson