#include <ColorCommonDialogC.h>
Inheritance diagram for ColorCommonDialogC:

| Public Methods | |
| virtual Edit::DataBlockI * | create () | 
| Creates new dialog. | |
| virtual PluginClass::ClassIdC | get_class_id () | 
| Returns the class ID if the dialog. | |
| virtual bool | do_modal () | 
| Prompts the dialog. | |
| virtual void | set_parent_wnd (HWND hParent) | 
| Sets the parent window handle, use before calling do_modal(). | |
| virtual void | set_caption (const char *szName) | 
| Sets the caption of the dialog, use before calling do_modal(). | |
| virtual void | set_color (const PajaTypes::ColorC &rCol) | 
| Sets the initial color fo the dialog, use before calling do_modal(). | |
| virtual const PajaTypes::ColorC & | get_color () const | 
| Returns the selected color (use after calling do_modal()). | |
| Static Public Methods | |
| ColorCommonDialogC * | create_new () | 
| Creates new dialog. | |
| Protected Methods | |
| ColorCommonDialogC () | |
| virtual | ~ColorCommonDialogC () | 
| Protected Attributes | |
| PajaTypes::ColorC | m_rColor | 
| std::string | m_sCaption | 
| HWND | m_hWndParent | 
Color dialog implements the same color choose dialog which is used all over Demopaja.
Example:
        ...
        ColorC              rColor;
        ColorCommonDialogC* pDlg = (ColorCommonDialogC*)pImpInterface->get_common_dialog( CLASS_COLORCOMMONDIALOG );
        if( pDlg ) {
            // set the initial color
            pDlg->set_color( rColor );
            // set parent windows handle, important!
            pDlg->set_parent_wnd( hDlg );
            if( pDlg->do_modal() ) {
                // get color
                rColor = pDlg->get_color();
            }
        }
        ...
| 
 | 
| Creates new dialog. 
 Implements DataBlockI. | 
| 
 | 
| Creates new dialog. 
 | 
| 
 | 
| Prompts the dialog. 
 Implements CommonDialogI. | 
| 
 | 
| Returns the class ID if the dialog. 
 Implements CommonDialogI. | 
| 
 | 
| Returns the selected color (use after calling do_modal()). 
 | 
| 
 | 
| Sets the caption of the dialog, use before calling do_modal(). 
 | 
| 
 | 
| Sets the initial color fo the dialog, use before calling do_modal(). 
 | 
| 
 | 
| Sets the parent window handle, use before calling do_modal(). 
 |