GRID_DECLARE_REGISTER( )
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.
This example shows the usage of GRID_DECLARE_REGISTER.
class CMyWnd: public CWnd
{
GRID_DECLARE_REGISTER( );
// member declarations
...
}
Macros::GRID_IMPLEMENT_REGISTER
Class Overview | Class Members