Print Page | Close Window

Regarding CommandBar

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=7693
Printed Date: 13 November 2025 at 9:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Regarding CommandBar
Posted By: KumarCJ
Subject: Regarding CommandBar
Date 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.



Replies:
Posted By: KumarCJ
Date 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.


Posted By: Oleg
Date 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



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