![]() |
ON_UPDATE_COMMAND_UI in CXTPControlComboBox? |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: ON_UPDATE_COMMAND_UI in CXTPControlComboBox?Posted: 08 June 2007 at 10:18am |
|
Hi, I have a CXTPControlComboBox in my toolbar. I want to implement the ON_UPDATE_COMMAND_UI for that control, means in some occasion I have to enable the control and in some time I have disable the control. I have tried like this, ON_UPDATE_COMMAND_UI(IDC_FORMAT_SPACE , OnUpdateSpacingCtl) OnUpdateSpacingCtl(CCmdUI* pCmdUI) { pCmdUI->Enable(m_bLineSpacingEnabled && m_bEnableButtons); } but it is not disabling? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 June 2007 at 1:44am |
|
Hi,
Check if you didn't call
pControl->SetFlags(xtpFlagManualUpdate);
for this combo.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |