![]() |
Why is m_bCustomizeAvail protected? |
Post Reply
|
| Author | |
Ark42
Senior Member
Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Quote Reply
Topic: Why is m_bCustomizeAvail protected?Posted: 30 August 2005 at 12:27am |
|
I have the need to sometimes programmatically disable the ability to customize any menus, and this is the only place I have to use the "friend class hack": class CXTPCommandBarsFriend : public CXTPCommandBars { friend class CMainFrame; }; //allow access to protected members static_cast<CXTPCommandBarsFriend *>(pCommandBars)->m_bCustomizeAvail = FALSE; |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 August 2005 at 3:58am |
|
Thanks. EnableCustomization method added. |
|
|
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 |