<< Return to Main Index

< Return to Class Index

GRID_DECLARE_REGISTER

GRID_DECLARE_REGISTER( )

Remarks

Insert this macro in your class declaration to enable dialog control functionality for your CWnd-derived class. You can use a dialog control in Visual Studio by dragging the User Control-Icon into the dialog template.

GRID_DECLARE_REGISTER inserts the necessary declaration code in your header file. By calling the generated methods RegisterClass and UnregisterClass, you can register the window class.

In your implementation file (.CPP), you have to insert the GRID_IMPLEMENT_REGISTER.

Example

This example shows the usage of GRID_DECLARE_REGISTER.

class CMyWnd: public CWnd

{

GRID_DECLARE_REGISTER( );

// member declarations

...

}

See Also

Macros::GRID_IMPLEMENT_REGISTER

Macros

Class Overview | Class Members