Click here to Skip to main content
16,006,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Edit Box Pin
_AnsHUMAN_ 22-Sep-06 3:56
_AnsHUMAN_ 22-Sep-06 3:56 
GeneralRe: Edit Box Pin
Rinu_Raj22-Sep-06 4:09
Rinu_Raj22-Sep-06 4:09 
AnswerRe: Edit Box Pin
David Crow22-Sep-06 3:59
David Crow22-Sep-06 3:59 
QuestionGetting started with Anti-Virus and Visual C++/MFC Pin
jjc200622-Sep-06 3:26
jjc200622-Sep-06 3:26 
QuestionRemote execution Pin
_tasleem22-Sep-06 3:15
_tasleem22-Sep-06 3:15 
QuestionLogging on to WindowsXP with smart card Pin
sirtimid22-Sep-06 2:58
sirtimid22-Sep-06 2:58 
QuestionHow to change IE's Virtual Machine? Pin
314159265322-Sep-06 2:54
314159265322-Sep-06 2:54 
QuestionHelp adding toolbar to a propertypage! Pin
montiee22-Sep-06 2:46
montiee22-Sep-06 2:46 
Well I have a mini-project just for my own personal curiosity where I've setup a propertysheet and added a number of propertypages to it. So far so good, no issues. However on on of the propertypages I want to add a toolbar. Now there is quite a bit of info out there on toolbars but for the life of me I can't work out what I'm missing so I'm hoping one of you might point me to some source code where this is done or point out what I'm missing.

Below is the code I added to add the toolbar to what I think should be the property page.

int CClientMgrPage::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CPropertyPage::OnCreate(lpCreateStruct) == -1)
return -1;

// TODO: Add your specialized creation code here
CFrameWnd *pFrameWnd=(CFrameWnd *)GetParent();
if (!m_CMgr_ToolBarCtrl.CreateEx(this, TBSTYLE_FLAT, WS_CHILD|WS_VISIBLE|CBRS_TOP) ||
!m_CMgr_ToolBarCtrl.LoadToolBar(IDR_Emgr_TOOLBAR)) {
TRACE0("Failed to create Client Mgr Toolbar");
}

m_CMgr_ToolBarCtrl.EnableDocking(CBRS_ALIGN_ANY);

pFrameWnd->EnableDocking(CBRS_ALIGN_ANY);
pFrameWnd->DockControlBar(&m_CMgr_ToolBarCtrl);

return 0;
}

With this code in place I trigger an assertion when I click on the tab containing the Toolbar.
CDockContext::CDockContext(CControlBar* pBar)
{
ASSERT(pBar != NULL);
ASSERT(pBar->m_pDockSite != NULL); <-------
}

Any ideas?
QuestionHow to get data from list control Pin
vc++_fragrance22-Sep-06 2:41
vc++_fragrance22-Sep-06 2:41 
AnswerRe: How to get data from list control Pin
_AnsHUMAN_ 22-Sep-06 2:52
_AnsHUMAN_ 22-Sep-06 2:52 
GeneralRe: How to get data from list control Pin
vc++_fragrance22-Sep-06 3:22
vc++_fragrance22-Sep-06 3:22 
AnswerRe: How to get data from list control Pin
Hamid_RT28-Sep-06 10:03
Hamid_RT28-Sep-06 10:03 
QuestionEdit box style Pin
LiYS22-Sep-06 1:35
LiYS22-Sep-06 1:35 
AnswerRe: Edit box style Pin
Naveen22-Sep-06 1:48
Naveen22-Sep-06 1:48 
GeneralRe: Edit box style Pin
LiYS22-Sep-06 1:55
LiYS22-Sep-06 1:55 
GeneralRe: Edit box style Pin
Naveen22-Sep-06 2:01
Naveen22-Sep-06 2:01 
QuestionRe: Edit box style Pin
David Crow22-Sep-06 4:04
David Crow22-Sep-06 4:04 
QuestionAsp.net application in vc++.net Pin
amaneet22-Sep-06 1:18
amaneet22-Sep-06 1:18 
AnswerRe: Asp.net application in vc++.net Pin
Christian Graus22-Sep-06 1:42
protectorChristian Graus22-Sep-06 1:42 
GeneralRe: Asp.net application in vc++.net Pin
amaneet22-Sep-06 3:27
amaneet22-Sep-06 3:27 
GeneralRe: Asp.net application in vc++.net Pin
prasad_som22-Sep-06 3:54
prasad_som22-Sep-06 3:54 
GeneralRe: Asp.net application in vc++.net Pin
Christian Graus22-Sep-06 10:24
protectorChristian Graus22-Sep-06 10:24 
AnswerRe: Asp.net application in vc++.net Pin
Hamid_RT22-Sep-06 2:35
Hamid_RT22-Sep-06 2:35 
QuestionCArray of CArray objects Pin
manustone22-Sep-06 0:32
manustone22-Sep-06 0:32 
AnswerRe: CArray of CArray objects Pin
Christian Graus22-Sep-06 0:45
protectorChristian Graus22-Sep-06 0:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.