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 Tech Support » CExtButton CExtPaintManagerOffice2007_RX EnableWindow Collapse All
Subject Author Date
Stephan Finkler Jun 12, 2007 - 6:38 AM

Hi!

If I disable ( CExtButton::EnbableWindow(FALSE) a CExtButton in CExtPaintManagerOffice2007_RX theme it takes a while until the button is shown as disabled. Same behaviour in ProfUIS_Controls sample ( s.CPageButtons::OnCmdMsg ..case IDC_CHECK_BUTTON_ENABLE: )

I think it has to do with the AnimationClient_StatePaint( dc ) in CExtButton::_DrawImpl()
Is there a redraw missing?

Regards
Michael

Technical Support Jun 12, 2007 - 12:18 PM

Thank you for reporting this issue. To fix it, please update the source code of the following method:

void CExtButton::OnEnable(BOOL bEnable) 
{
      CButton::OnEnable(bEnable);
      AnimationSite_ClientProgressStop( this );
CClientDC dc( this );
      _DrawImpl( dc );
}