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 Tech Support » Adding Member to CExtRibbonNode class Collapse All
Subject Author Date
Burak Petekkaya Apr 18, 2007 - 8:35 AM

Hi,

I have trouble with adding a public member to CExtRibbonNodeClass..If I add a member to the class, dll is compiled succesfully but at runtime my application does not work although I do not use that member..How should I add a member?

here the code...

in CExtRibbonbar.h,

class __PROF_UIS_API CExtRibbonNode : public CExtCustomizeCmdTreeNode
{
public:
    DECLARE_SERIAL( CExtRibbonNode );
protected:
    INT m_nRIL_VisualCurrent, m_nRIL_VisualMin, m_nRIL_VisualMax,
        m_nRIL_Effective, m_nRIL_EffectiveCollapsed;
    CArray < DWORD, DWORD > m_arrILEtoILV;
    virtual void _InitMembers();
public:
    UINT m_nTpmxAdditionalFlags;
    CExtCmdIcon m_iconBig, m_iconSmall;    
    UINT m_nMyMember; // member I try to add
    CExtRibbonNode(
......
--------------------------------
in CExtRibbonBar.cpp,

void CExtRibbonNode::_InitMembers()
{
    ASSERT_VALID( this );    
    m_nTpmxAdditionalFlags = TPMX_RIBBON_MODE;
    m_nMyMember = 0;
    ModifyFlags( __ECTN_RGA_DEFAULT );
...........
-----

Can you help me about this?

Technical Support Apr 18, 2007 - 11:35 AM

Such code modification in big projects often requires the project (and all projects that depend on it) to be completely rebuilt. Please also ensure your application using exactly the same modified and just compiled DLL (not any other).

You have no reason to code such Prof-UIS modifications in any cases. Please create your classes derived from Prof-UIS classes in scope of your project(s).