|
-
Dec 3rd, 2002, 11:06 AM
#1
Thread Starter
Lively Member
toolbar in dialog
I've made a program with MFC in visual C++ 6. then I tried to insert a toolbar. I've made one, IDC_TOOLBAR1. then I tried this code to place it in the dialog:
[code]
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_TOOLBAR1))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
But when I run this code, I dont get a toolbar. what's wrong, or can anybody give me a little code example (if possible)?
thanks in advance
VIsualPenguin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|