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 » How to show Whether a particular tool is Clicked or Not CExtTabbedToolControlBarOneNote Collapse All
Subject Author Date
ven rag Jul 6, 2006 - 12:22 AM

Hi ,

I have used CExtTabbedToolControlBarOneNote tabbed control.I have attached the Bitmap for each control in the Tabbed control.
For example in the ProUIS Tabbed Controls Sample we have bitmap IDB_BITMAP_TOOLS_COMMON_CONTAINERS for common controls like Save,about ,copy,paste etc....In the same way I have a Bitmap in the Tabbed control like draw line,square,.....
When a click line I can draw the Line.My problem is I have to Show whether the Line tool is clicked or not .Since we show the tools in the Bitmap
format ,we can’t see whether the tool is clicked or not..
How to do it..?

Thank u


Technical Support Jul 7, 2006 - 4:06 AM

If we understood you correctly, you need a button that can be checked or unchecked. To do this, please add the ON_UPDATE_COMMAND_UI handler for the command:

afx_msg void OnUpdateYourCommand(CCmdUI* pCmdUI);

...
 
ON_UPDATE_COMMAND_UI(ID_YOUR_COMMAND, OnUpdateYourCommand)
 
...
 
void CMainFrame::OnUpdateYourCommand( CCmdUI * pCmdUI ) 
{
 pCmdUI->SetCheck( m_bChecked ? 1 : 0 );
}