Tooltips in a DLL
Posted on 1997-11-21
I've got an MFC DLL that creates a CFrameWnd with a couple of toolbars in it. The toolbars work fine, but for some unknown reason (to me), their tooltips don't. I create the toolbars in my CDerivedFrameWnd::OnCreate() function like this...
m_wndFormatBar.Create(this, WS_CHILD | WS_VISIBLE |
CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY, IDR_FORMATBAR);
Since I'm using CBRS_TOOLTIPS, I'm not sure why they're not displaying. I've got tooltips assigned to each button on the toolbar. Incidentally, if I use the same CDerivedFrameWnd in an executable, suddenly the tooltips DO work. But I need to have it working from the DLL.