![]() |
CXTPControlComboBox - SetEnabled question |
Post Reply ![]() |
Author | |
krulle ![]() Newbie ![]() Joined: 05 October 2004 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 10 November 2004 at 7:22am |
Why is SetEnabled in CXTPControlComboBox a protected method? In my case, I have a CXTPToolBar in a CDialog derived class. I want to manually disable it from the dialog code using a CXTPControlComboBox pointer like this: m_ModeList ->SetEnabled(FALSE);I can't do this since SetEnabled is protected in the CXTPControlComboBox class. A "workaround" is to cast the pointer to a CXTPControlPopup pointer and call the public version of SetEnabled there but such code doesn't look good even if it works in this case. (( CXTPControlPopup*)m_ModeList)->SetEnabled(FALSE);Is there a better way to disable a CXTPControlComboBox (without using update handler)? |
|
![]() |
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 |