<< Return to Main Index

< Return to Class Index

CGXAbstractControlFactory::RegisterWndClasses

virtual void RegisterWndClasses(HINSTANCE hResource) = 0;

hResource

Use this instance handle for registering the window class (as shown in the example).

Remarks

RegisterWndClasses is called during the initialization of your application to register window class names used in Objective Grid. These window classes can then be used as registered controls in the dialog template
(see GRID_DECLARE_REGISTER and GRID_IMPLEMENT_REGISTER for further information).

If you have derived a class CGXAbstractControlFactory, you need to override this method.

Here is how a typical override of RegisterWndClasses should look. If you don’t need support for using CGXGridWnd or CGXTabWnd as a registered control in a dialog template, you don’t have to register any window classes.

void CGXControlFactory::RegisterWndClasses(HINSTANCE hInstance)

{

CGXGridWnd::RegisterClass(hInstance);

#if !defined(_GX_NO_TABWND_SUPPORT)

// Tab Window

CGXTabBeam::RegisterClass(hInstance);

CGXTabWnd::RegisterClass(hInstance);

#endif

}

See Also

GRID_DECLARE_REGISTER GRID_IMPLEMENT_REGISTER

CGXAbstractControlFactory

Class Overview | Class Members