Hi there. Thanks for reading, and I hope you can help me. I am creating an address book application, and it's an MFC Dialog-Based application. I created a toolbar resource item, and I am having some trouble with it. I added a 'CToolBar' class member in my dialog class header file. In the 'OnInitDialog' function, I am calling something similar to this:
Code:
// Some code here
// ......
// Attempt to create the toolbar
if (! m_wndBar.CreateEx(/* Parameters here */)
|| m_wndBar.LoadToolBar(IDR_MYTOOLBAR))
{
AfxMessageBox("Error creating toolbar.\n"); // Display error message
return -1; // Return '-1' (end application)
}
I do not get my error message, so I assume that the toolbar resource is created or loaded, but nothing shows up. I can display a menu ('CMenu *' class), but I can't get this to work.
If you can help me in any way I would appreciate it.
Thanks,
Matt U.