![]() |
Regarding CommandBar |
Post Reply
|
| Author | |
KumarCJ
Groupie
Joined: 02 April 2007 Location: India Status: Offline Points: 96 |
Post Options
Thanks(0)
Quote Reply
Topic: Regarding CommandBarPosted: 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. |
|
![]() |
|
KumarCJ
Groupie
Joined: 02 April 2007 Location: India Status: Offline Points: 96 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |