Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Help with CExtMenuControlBar Collapse All
Subject Author Date
Willie Zayas Sep 4, 2002 - 2:41 PM

Hi, I have created a VC 7 Aplication, it works fine, i have used the Prof-UI controls library. It compiles fine, the problem comes when i run the application. When I "dock -off" the menu bar and i try to open a new document, save a document or try to open the aboutapp dialog i get an exception. Those commands only work fine when the menu bar is docked on, this doesn’t happen with the toolbar, the commands work no matter if the tool bar is docked on or off. I guess it must be the way that I created the menu bar. My application is SDI and it has a splitter with a treeview on the left and a formview on the right. Here is part of the code:
On mainfrm.h:
public:
    CExtMenuControlBar m_wndMenuBar;

On mainfrm.cpp (Create method):

    m_wndMenuBar.SetMdiWindowPopupName( _T("Window") );
    if( !m_wndMenuBar.Create(
            NULL, // _T("Menu Bar"),
            this,
            IDR_MAINFRAME
            )
        )
{
TRACE0("Failed to create menubar\n");
return -1; // failed to create
}

Thanks in advance...

Willie

Sergiy Lavrynenko Sep 9, 2002 - 10:10 AM

Dear Willie Zayas,

I think the problem is this:
The IDR_MAINFRAME value is not a good to use as dialog control ID of the control bar window.

There are 2 solutions:
- You can send me a letter to l_sergiy@fossware.com with attached project and I will reply with attached comments or bug fixes.
- I can send you a letter with my demo project that uses similar windows.