Click here to Skip to main content
15,896,528 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: That's it, done with this one for now. Pin
Richard MacCutchan12-Dec-11 22:49
mveRichard MacCutchan12-Dec-11 22:49 
GeneralRe: That's it, done with this one for now. Pin
jkirkerx15-Dec-11 19:21
professionaljkirkerx15-Dec-11 19:21 
AnswerRe: c++ win32 , equivilent to DateTime.Now() in asp.net Pin
Satheesh154613-Dec-11 17:30
Satheesh154613-Dec-11 17:30 
QuestionDock an CControlBar into CChidFrame ? Pin
_Flaviu10-Dec-11 9:01
_Flaviu10-Dec-11 9:01 
AnswerRe: Dock an CControlBar into CChidFrame ? Pin
Richard MacCutchan10-Dec-11 22:09
mveRichard MacCutchan10-Dec-11 22:09 
GeneralRe: Dock an CControlBar into CChidFrame ? Pin
_Flaviu11-Dec-11 6:03
_Flaviu11-Dec-11 6:03 
GeneralRe: Dock an CControlBar into CChidFrame ? Pin
Richard MacCutchan11-Dec-11 22:10
mveRichard MacCutchan11-Dec-11 22:10 
GeneralRe: Dock an CControlBar into CChidFrame ? Pin
_Flaviu11-Dec-11 22:38
_Flaviu11-Dec-11 22:38 
I try in this way :
C++
// ChildFrm.h
protected:
   CControlBarExt m_wndControlBar;
   CTestDialog m_cDialog;


and
C++
int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if(CMDIChildWnd::OnCreate(lpCreateStruct) == -1)return -1;

	// TODO: Add your specialized creation code here

	if(! m_wndControlBar.Create(this, &m_cDialog, CString("ControlBar Demo"), IDD_DIALOG1))
	{
		TRACE0("Failed to create dialogbar\n");
		return -1;      // fail to create
	}

	m_wndControlBar.SetBarStyle(m_wndControlBar.GetBarStyle() | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
	m_wndControlBar.EnableDocking(CBRS_ALIGN_ANY);
	DockControlBar(&m_wndControlBar);

	return 0;
}


I get follow assetion failure :
C++
ASSERT(pDockBar != NULL);


In the same way can be done CCOntrolBar in CMainFrame and goes well ...
GeneralRe: Dock an CControlBar into CChidFrame ? Pin
Richard MacCutchan12-Dec-11 0:35
mveRichard MacCutchan12-Dec-11 0:35 
GeneralRe: Dock an CControlBar into CChidFrame ? Pin
_Flaviu12-Dec-11 19:25
_Flaviu12-Dec-11 19:25 
Questionhow to parse an algebric equation in c++? Pin
rahulvishwakarma9-Dec-11 19:46
rahulvishwakarma9-Dec-11 19:46 
AnswerRe: how to parse an algebric equation in c++? Pin
Richard MacCutchan9-Dec-11 21:22
mveRichard MacCutchan9-Dec-11 21:22 
AnswerRe: how to parse an algebric equation in c++? Pin
Iain Clarke, Warrior Programmer9-Dec-11 23:08
Iain Clarke, Warrior Programmer9-Dec-11 23:08 
AnswerRe: how to parse an algebric equation in c++? Pin
Alan Balkany12-Dec-11 5:46
Alan Balkany12-Dec-11 5:46 
AnswerRe: how to parse an algebric equation in c++? Pin
Bram van Kampen12-Dec-11 16:00
Bram van Kampen12-Dec-11 16:00 
QuestionHow do i get the screen coordinates of an IHTMLElement? Pin
kartikdasani8-Dec-11 22:25
kartikdasani8-Dec-11 22:25 
AnswerRe: How do i get the screen coordinates of an IHTMLElement? Pin
Code-o-mat9-Dec-11 3:02
Code-o-mat9-Dec-11 3:02 
AnswerRe: How do i get the screen coordinates of an IHTMLElement? Pin
Skynet_Code11-Dec-11 4:43
Skynet_Code11-Dec-11 4:43 
Questionprint n in even numbers only Pin
Yolande MR8-Dec-11 10:15
Yolande MR8-Dec-11 10:15 
AnswerRe: print n in even numbers only Pin
Albert Holguin8-Dec-11 10:26
professionalAlbert Holguin8-Dec-11 10:26 
QuestionRe: print n in even numbers only Pin
David Crow8-Dec-11 10:52
David Crow8-Dec-11 10:52 
AnswerRe: print n in even numbers only Pin
Yolande MR8-Dec-11 11:36
Yolande MR8-Dec-11 11:36 
SuggestionRe: print n in even numbers only Pin
David Crow8-Dec-11 12:20
David Crow8-Dec-11 12:20 
GeneralRe: print n in even numbers only Pin
Albert Holguin8-Dec-11 13:06
professionalAlbert Holguin8-Dec-11 13:06 
GeneralRe: print n in even numbers only Pin
David Crow9-Dec-11 17:55
David Crow9-Dec-11 17:55 

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.