Click here to Skip to main content
15,908,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: 32/64/96bit integers? Pin
Wolfram Steinke10-Aug-01 16:16
Wolfram Steinke10-Aug-01 16:16 
AnswerRe: 32/64/96bit integers? Pin
Mukkie10-Aug-01 21:48
Mukkie10-Aug-01 21:48 
GeneralInternet Explorer Pin
calebcohoon10-Aug-01 14:31
calebcohoon10-Aug-01 14:31 
GeneralRegSaveKey Pin
10-Aug-01 13:47
suss10-Aug-01 13:47 
GeneralGlobals from additional files Pin
10-Aug-01 12:47
suss10-Aug-01 12:47 
Questioncreate pointers to different classes??? Pin
Bob Bain10-Aug-01 11:34
Bob Bain10-Aug-01 11:34 
AnswerRe: create pointers to different classes??? Pin
Tim Deveaux11-Aug-01 5:48
Tim Deveaux11-Aug-01 5:48 
GeneralProblem with Splitter Wnd Pin
Francis B.10-Aug-01 11:06
Francis B.10-Aug-01 11:06 
I split the view of my application in two parts. My problem is that the status bar and toolbar disappear after the split and I don't know why!!! Confused | :confused:

This is my code :
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
CCreateContext* pContext = (CCreateContext*)lpCreateStruct->lpCreateParams;
int rc;
CRect cr;

if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;

if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}

if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
}

// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);

GetClientRect(&cr);
CSize paneSize(cr.Width() / 2, cr.Height());

m_wndSplitter.CreateStatic(this, 1, 2);

if(!m_wndSplitter.CreateView(0, 0,
RUNTIME_CLASS(CBOFListView),
paneSize, pContext))
{
TRACE0("Failed to create Splitter Wnd\n");
return -1; // fail to create
}

if(!m_wndSplitter.CreateView(0, 1,
RUNTIME_CLASS(CBOFInfoView),
paneSize, pContext))
{
TRACE0("Failed to create Splitter Wnd\n");
return -1; // fail to create
}

return 0;
}

Best Regards!

GeneralRe: Problem with Splitter Wnd Pin
10-Aug-01 11:22
suss10-Aug-01 11:22 
GeneralNeed some help Pin
Brian V Shifrin10-Aug-01 10:42
Brian V Shifrin10-Aug-01 10:42 
GeneralRe: Need some help Pin
Carlos Antollini10-Aug-01 10:56
Carlos Antollini10-Aug-01 10:56 
GeneralDuh! Pin
Brian V Shifrin10-Aug-01 11:13
Brian V Shifrin10-Aug-01 11:13 
GeneralRe: Duh! Pin
#realJSOP10-Aug-01 11:23
professional#realJSOP10-Aug-01 11:23 
GeneralRe: Need some help Pin
Derek Waters12-Aug-01 14:08
Derek Waters12-Aug-01 14:08 
Generaltons of awful errors Pin
Jake Palmer10-Aug-01 10:27
Jake Palmer10-Aug-01 10:27 
GeneralRe: tons of awful errors Pin
#realJSOP10-Aug-01 10:33
professional#realJSOP10-Aug-01 10:33 
GeneralRe: tons of awful errors Pin
Jake Palmer10-Aug-01 11:02
Jake Palmer10-Aug-01 11:02 
GeneralSource .CPP and Header .H Pin
10-Aug-01 10:06
suss10-Aug-01 10:06 
GeneralRe: Source .CPP and Header .H Pin
Carlos Antollini10-Aug-01 10:54
Carlos Antollini10-Aug-01 10:54 
GeneralRe: Source .CPP and Header .H Pin
10-Aug-01 11:50
suss10-Aug-01 11:50 
GeneralRe: Source .CPP and Header .H Pin
Carlos Antollini10-Aug-01 12:07
Carlos Antollini10-Aug-01 12:07 
GeneralRe: Source .CPP and Header .H Pin
10-Aug-01 12:14
suss10-Aug-01 12:14 
GeneralRe: Source .CPP and Header .H Pin
Stefan Pedersen11-Aug-01 14:23
Stefan Pedersen11-Aug-01 14:23 
GeneralRe: Source .CPP and Header .H Pin
Michael Dunn10-Aug-01 15:46
sitebuilderMichael Dunn10-Aug-01 15:46 
GeneralRe: Source .CPP and Header .H Pin
10-Aug-01 23:07
suss10-Aug-01 23:07 

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.