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 » Problem With CExtColorCtrl Repaint Collapse All
Subject Author Date
John Burns Jan 25, 2005 - 9:37 AM

Hello:


I’m experiencing a problem with a CExtColorButton/CExtColorCtrl combination (as in the ’Theme Colorizer example).


The problem is, that after the CExtColorButton popup menu uncovers the CExtColorCtrl, the CExtColorCtrl does not repaint itself if a SetupColor(crColor, true) call is performed. Otherwise, the CExtColorCtrl does repaint itself.


The CExtColorButton is initialized:


 m_btnColor.SetFlat( TRUE );
 m_btnColor.SetDrawBorder( TRUE );
 m_btnColor.SetDrawFocusRect( FALSE );
 m_btnColor.m_lParamCookie = LPARAM(IDC_BUTTON_COLOR);
 m_btnColor.m_bEnableBtnColorDefault = false;


The CExtColorCtrl is initialized:


m_wndColorCtrl.m_selClrs.m_clrCurrent =  m_wndColorCtrl.m_selClrs.m_clrPrev = m_wndColorCtrl.m_selClrs.m_clrNew = m_StrokeDescriptor.m_StrokeColor.m_Color;
 m_wndColorCtrl.SetupColor(m_StrokeDescriptor.m_StrokeColor.m_Color, true);

Technical Support Jan 26, 2005 - 1:22 PM

Dear John,

We cannot reproduce the bug described in your message. Please let us know more details:

- the version of Visual C++ and which service packs (if any)
- the version of Windows OS and which service packs (if any)


We would also appreciate if you send us a project that demonstrates the problem.