CFugue
Protected Member Functions | List of all members
CInitCommonControls< dwICC > Class Template Reference

#include <InitCommonControls.h>

Protected Member Functions

 CInitCommonControls (void)
 Protected Constructor. More...
 
 ~CInitCommonControls (void)
 Protected Destructor.
 

Detailed Description

template<DWORD dwICC = ICC_WIN95_CLASSES>
class CInitCommonControls< dwICC >

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.

Constructor & Destructor Documentation

template<DWORD dwICC = ICC_WIN95_CLASSES>
CInitCommonControls< dwICC >::CInitCommonControls ( void  )
protected

Protected Constructor.

Helper Structure to Call the InitCommonControlsEx() function

Definition at line 36 of file InitCommonControls.h.


The documentation for this class was generated from the following file:

CFugue, the C++ Music Programming Library © Copyright 2009 Cenacle Research India Private Limited Gopalakrishna Palem