Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Regarding CommandBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Regarding CommandBar

 Post Reply Post Reply
Author
Message
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post Topic: Regarding CommandBar
    Posted: 30 July 2007 at 6:54am
Hi,
 
we have class say "TestClass" in our MFC application.
 
"TestClass" is not derived from any of the MFC classes. It is an individual class. We are using this class functionality in our application.
 
I had included the complete path for  "XTPFrameWnd.h",  and tried to use following code:
 
// Initialize the command bars
if (!InitCommandBars())
  return -1;
 // Get Commandbar
    CXTPCommandBar* pCommandBars = GetCommandBars();
But It is showing below are undeclared identifier.
 
'InitCommandBars' : undeclared identifier
'GetCommandBars' : undeclared identifier
 
How I can get the CommandBar in "TestClass" (Individual class).
 
Thanks,
KumarCJ.
Back to Top
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post Posted: 30 July 2007 at 7:43am
Hi,
 
Since by mistake I had mention TestClass is class for privious post, Actualy TestClass is a .cpp file containing Global function.
 
we have File say "TestClass.cpp" in our MFC application.
 
"TestClass.cpp":  It is an individual File containing global function. We are using this File functionality in our application.
 
I had included the complete path for  "XTPFrameWnd.h",  and tried to use following code:
 
// Initialize the command bars
if (!InitCommandBars())
  return -1;
 // Get Commandbar
    CXTPCommandBar* pCommandBars = GetCommandBars();
But It is showing below are undeclared identifier.
 
'InitCommandBars' : undeclared identifier
'GetCommandBars' : undeclared identifier
 
How I can get the CommandBar in "TestClass.cpp".
 
Thanks,
KumarCJ.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 30 July 2007 at 7:54am
Hi,
 
InitCommandBars and GetCommandBars are _members_ of CXTPFrameWnd. Your class have to be derived from CXTPFrameWnd.
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.051 seconds.