Print Page | Close Window

GetCommandBars from CXTResizeDialog derived dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5353
Printed Date: 04 March 2025 at 7:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetCommandBars from CXTResizeDialog derived dialog
Posted By: lauralucas
Subject: GetCommandBars from CXTResizeDialog derived dialog
Date Posted: 24 October 2006 at 3:56pm
hello

i'm trying to create a toolbar from a dialog class defined like this:

class CClientSideDlg : public CXTPDialogBase<CXTResizeDialog>
{
....
}

I have this method:

bool CClientSideDlg::CreateToolBars()
{
    if (!InitCommandBars())
        return false;

    // Get a pointer to the Command Bar object.
    CXTPCommandBars* pCommandBars = GetCommandBars();
...
}


on compilation, I get:

error C2065: 'InitCommandBars' : undeclared identifier
error C2065: 'GetCommandBars' : undeclared identifier


any ideas? maybe I'm missing an include? help me please



Replies:
Posted By: Oleg
Date Posted: 25 October 2006 at 1:17am
Hello,
Code looks right.
 
may be you have some old version... Check if Source\CommandBars\XTPDialogBase.h file exists and InitCommandBars method.
 
maybe you have some custom macros for CXTPDialogBase...


-------------
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