CFugue
|
#include <InitCommonControls.h>
Protected Member Functions | |
CInitCommonControls (void) | |
Protected Constructor. More... | |
~CInitCommonControls (void) | |
Protected Destructor. | |
Helper Class to ensure the initialization of Common Controls Library. Add this as a Base Class for Your Control Class to Initialize the Common Control Library Automatically.
Since this Class uses a local static variable in the constructor for the Library Initialization, the InitCommonControlsEx() is called only once per App for all the derived class objects.
Being a base class - this guarantees that the library is initialized before any derived class functions are invoked.
In case your control has multiple base classes, try to make the CInitCommonControls as the first base class followed by the others. This makes sure that InitCommonControlsEx() is called before any other dependent functions in other base classes are invoked.
Usage: class MyClass: CInitCommonControls<ICC_LISTVIEW_CLASSES | ICC_TREEVIEW_CLASSES> { //... }
Definition at line 30 of file InitCommonControls.h.
|
protected |
Protected Constructor.
Helper Structure to Call the InitCommonControlsEx() function
Definition at line 36 of file InitCommonControls.h.
CFugue, the C++ Music Programming Library | © Copyright 2009 Cenacle Research India Private Limited | Gopalakrishna Palem |