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 » SetMdiWindowPopupName Collapse All
Subject Author Date
Stephan Finkler Apr 14, 2005 - 8:51 AM

Hi,

I’ve got an MDI App with customization.
If I open several docs I miss them under the menu item "Window".

Before I create the menubar I set m_wndMenuBar.SetMdiWindowPopupName( _T("Window") );

I compared your MDIDOCVIEW sample with my app and I saw that in

BOOL CExtMenuControlBar::_UpdateMenuBar()

my app gets a valid pMenuInfo

    MenuInfoUpdate();
CExtCustomizeSite::CCmdMenuInfo * pMenuInfo = MenuInfoGet();
    if( pMenuInfo != NULL )

so that this code
if( _IsMdiApp() && m_sMdiWindowPopupName.IsEmpty() )

isn’t executed.

Any idea?
(I’m using ProfUIS v2.27)

thanks for any help

Theo Sanders Dec 2, 2022 - 12:14 PM

Customers! Looking for a research assistant? Contact our free research authors for advice on this platform who learn We have hundreds of professionals to choose from so you can find a match in no time. You can view different researcher profiles to find the right researcher for your therapy.

William Henry Nov 27, 2022 - 11:47 PM

Although it is automatic when you set the form’s AcceptButton property. Setting the DialogResult also automatically closes the dialog. https://dinosaur-game.io

Technical Support Apr 14, 2005 - 9:41 AM

In your case the MDIDOCVIEW is not a good sample that can help you. Please take a look at the CMainFrame::OnCreate() method in the DRAWCLI application. The MDI windows list works well in the customizable DRAWCLI application because the appropriate command tree nodes are marked with the __ECTN_TBB_APPEND_MDI_MENU flag before the CExtCustomizeSite::EnableCustomization() method is called:

    CExtCustomizeSite::MenuInfoGetByName(
        _T("Document")
        ) ->
        GetNode( true ) ->
            SearchNodeElement(
                _T("&Window"),
                1
                ) ->
                ModifyFlags(
                    __ECTN_TBB_APPEND_MDI_MENU
                    );
    CExtCustomizeSite::MenuInfoGetByName(
        _T("Document")
        ) ->
        GetNode( false ) ->
            SearchNodeElement(
                _T("&Window"),
                1
                ) ->
                ModifyFlags(
                    __ECTN_TBB_APPEND_MDI_MENU
                    );
Please use this technique in your customizable application and contact us if you encounter any difficulties.

Betty Cooper Nov 21, 2022 - 11:36 PM

You can also set up any required events, such as the application’s start event and so on. Thank. https://iogamesio.org