Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - GetCommandBars from CXTResizeDialog derived dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetCommandBars from CXTResizeDialog derived dialog

 Post Reply Post Reply
Author
Message
lauralucas View Drop Down
Newbie
Newbie


Joined: 24 October 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote lauralucas Quote  Post ReplyReply Direct Link To This Post Topic: GetCommandBars from CXTResizeDialog derived dialog
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.