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 » CExtToolBoxWnd disable/enable/background color Collapse All
Subject Author Date
Raha Mohtasham Dec 4, 2007 - 8:42 AM

Dear Support,

Following questions related to CExtToolBoxWnd:

1) How to disable/enable group items or child items?

2) How to change the group items background color? (m_clrBkLT and m_clrBkRB change only the children area color but not the background of the Title)

Thanks in advance

Technical Support Dec 4, 2007 - 12:20 PM

The CExtToolBoxWnd control does not support disabled items. It is like a palette in the designer and everything is accessible in it. If you want to disable some toolbox item/group, you should hide it by applying the __TBWI_VISIBLE style to the toolbox item.

CExtToolBoxWnd::TOOLBOX_ITEM_DATA * pItem = . . .
      pItem->ModifyItemStyle( __TBWI_VISIBLE );
The m_clrBkLT and m_clrBkRB color values are used in the CExtToolBoxWnd::OnToolBoxWndEraseEntire() virtual method for painting the entire background of a toolbox control. You can override this method to repainting the background in a custom way. You can override the CExtToolBoxWnd::OnToolBoxWndEraseItem() virtual method to repaint the background of a particular toolbox item.