![]() It appears that now includes a BEGIN_TEMPLATE_MESSAGE_MAP that is not compatible with the one from. This file is not needed.ī) Change DECLARE_TEMPLATE_MESSAGE_MAP() to DECLARE_MESSAGE_MAP().Ĭ) Change END_TEMPLATE_MESSAGE_MAP() to END_MESSAGE_MAP().Ī) BEGIN_TEMPLATE_MESSAGE_MAP(class BASE_TYPE, CFontCtrl, BASE_TYPE)ī) BEGIN_TEMPLATE_MESSAGE_MAP(class BASE_TYPE, CColorCtrl, BASE_TYPE)Ī) BEGIN_TEMPLATE_MESSAGE_MAP(CFontCtrl, BASE_TYPE, BASE_TYPE)ī) BEGIN_TEMPLATE_MESSAGE_MAP(CColorCtrl, BASE_TYPE, BASE_TYPE) I was able to get these classes to work in VS.2005 Sp1 with the following changes:Ī) Remove the #include of. ![]() Replace CCtrlClass m_ctrl with CFontCtrl m_ctrl.Create a control with the dialog editor. ![]() Use this control if you want to change font style orįont height of your control. Warning! Don't use these two classes together with one control. Will create a static control with initial red text and green background. There are two derived classes CColorCtrlExĪnd CBlinkCtrlEx that allow you to preset the control If you have problems with transparency of the text background call ForceOpaque(),īut take note: if you use a pattern or a non-solid color in low-color resolution you'll haveĪ rectangle under text that is different from another background. If you want to use only Solid colors - call UseSolidColors(TRUE).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |