I'm trying to do this using Microsoft Visual C++ 6.0 but cant get it to show up.
Here is what I am trying:
int CTL1DatabaseProgrammerDlg::OnCreate(LPCR... lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;
if (!mybar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_TOOLTIPS) ||
!mybar.LoadToolBar(IDR_TOOLBAR1))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
return 0;
}
Everything compiles just fine, and the app starts, just no toolbar!
Are toolbars only available for SDI, and MDI apps?
Tags: