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 » CExtCustomizeSite::EnableCustomization Collapse All
Subject Author Date
Jayender S Apr 17, 2006 - 1:55 AM

i am using this code in ver 2.53

HICON hIconOle =
    g_CmdManager->CmdGetHICON(
    g_CmdManager->ProfileNameFromWnd( GetSafeHwnd() ),
    ID_OLE_INSERT_NEW
    );
    //ASSERT( hIconOle != NULL );

how can i replace the the above code plz post the sample code for above code

also i got the assert error in the following code

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 );
if( !CExtCustomizeSite::EnableCustomization( this ) )
{
    ASSERT( FALSE );
    return -1;
}


any relation between these two error? bcos i cant save the document.

plz send the sample code for above code.

Aaron Hmelnitsky Dec 23, 2022 - 3:35 PM

The only thing that saved me from such a blockage with an essay is this site https://urbanmatter.com/need-a-reliable-college-essay-writing-service-look-no-further/, it is a reliable college essay writing service, you will not regret it, your essay will be written with high quality

Technical Support Apr 17, 2006 - 9:33 AM

The icons in Prof-UIS starting from version 2.53 are not based on HICON handles. That is why the CExtCmdManager::CmdGetHICON() method was removed. Please use the following code instead:

const CExtCmdIcon * pCmdIcon =
        g_CmdManager->CmdGetIconPtr(
            g_CmdManager->ProfileNameFromWnd( GetSafeHwnd() ),
            ID_OLE_INSERT_NEW
        );
    if( pCmdIcon != NULL && (! pCmdIcon->IsEmpty() ) )
    {
        HICON hIcon = pCmdIcon->ExtractHICON();
        if( hIcon != NULL )
        {
            . . .
            ::DestroyIcon( hIcon );
        }
    }
As for your second question, let us know more about where the assertion failure occurs.