Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Where do you find definitions for custom controls Collapse All
Subject Author Date
Ernest Peters May 17, 2005 - 1:32 AM

Hi,
when adding a custom control to your dialog you define the class as ’ProfUIS-TabPageContainer’ for example. where is this ’ProfUIS-TabPageContainer’ defined? How do you know what other custom controls are available?

I know you can trawl through your example code and copy and paste from there..but they are defined somewhere arent they?

Technical Support May 17, 2005 - 7:51 AM

The following line is defined in ExtTabPageContainerWnd.h:

#define __EXT_TAB_PAGE_CONTAINER_CLASS_NAME _T("ProfUIS-TabPageContainer")
The string ProfUIS-TabPageContainer can be used as a name of the custom window class in the dialog template editor. When a dialog window is created from its template at run time, it is required all the window classes used in the dialog template to be already registered. All common control window classes like BUTTON, LISTBOX, EDIT and etc. are registered when the application is initialized. The rich edit window class is registered when its DLL is loaded (performed by the AfxInitRichEdit()). The tab page container window class is registered in the constructor of the CExtTabPageContainerWnd class which is usually invoked before the tab page container is created by MFC’s code for initializing the dialog template. So, that is why dialogs typically get created successfully and any control information can be found by invoking Win32 APIs for managing window classes.