Print Page | Close Window

Why is m_bCustomizeAvail protected?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2811
Printed Date: 08 November 2025 at 9:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Why is m_bCustomizeAvail protected?
Posted By: Ark42
Subject: Why is m_bCustomizeAvail protected?
Date 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;




Replies:
Posted By: Oleg
Date Posted: 30 August 2005 at 3:58am

Thanks.

EnableCustomization method added.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net