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.
Subject |
Author |
Date |
|
Marcos Mori de Sique
|
Nov 8, 2002 - 6:21 PM
|
Hi Sergiy,
I have a problem with MRU List, I simply move ID_FILE_MRU_FILE1 to an submenu (because i want to separate files from projects).
And when popup is shown it’s empty !
Regards Mori
|
|
Sergiy Lavrynenko
|
Nov 13, 2002 - 10:25 AM
|
Hi Mori,
Please replace two lines of code in the ExtPopupMenuWnd.cpp file at the end of CExtPopupMenuWnd::ItemInsert() method:
BOOL CExtPopupMenuWnd::ItemInsert( UINT nCmdID, // = TYPE_SEPARATOR, INT nPos, // = -1 // append LPCTSTR sText, // = NULL // for TYPE_POPUP only HICON hIcon, // = NULL // for TYPE_POPUP only HWND hWndSpecCmdReciever // = NULL // specific command reciever ) {
...
else {
////////// OLD CODE - BEGIN // ASSERT( m_pWndParentMenu != NULL ); // m_pWndParentMenu->_SyncItems(); ////////// OLD CODE - END
////////// NEW CODE - BEGIN if( m_pWndParentMenu != NULL ) m_pWndParentMenu->_SyncItems(); ////////// NEW CODE - END
}
return TRUE; }
MRU file items should appear anywhere in menus.
Best regards, Sergiy Lavrynenko
|
|