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 Tech Support » RibbonMenu question (Part2) Collapse All
Subject Author Date
tera tera May 8, 2009 - 4:34 AM

Hello.



(1), I perform MenuRebuild.


   void MenuRebuild( CExtRibbonNode * pRibbonNode )    {     CMemFile _file;     CArchive arSave( &_file, CArchive::store );     MenuInfoGetDefault()->AccelTableSerialize( arSave );     arSave.Close();

    :

    :




(2), Assert appears if I perform the setting of the quick access bar.


I ask for a countermeasure.


 

Technical Support May 15, 2009 - 4:50 AM

We tried to reproduce this issue but failed. We would like to ask you to let us connect to your desktop and debug this project on it.

tera tera May 8, 2009 - 4:36 AM

 


The source code becomes this place


http://ifreeta.dee.cc/20090508/RibbonBarMDI.lzh


Thanks,


 

Technical Support May 11, 2009 - 11:59 AM

We cannot confirm that. We encountered no assertion failures. Your MenuRebuild() method replaces the content of the ribbon bar with the same content. The menu displayed from the expand button on the quick access toolbar works exactly the same like before rebuilding ribbon bar’s buttons.

tera tera May 12, 2009 - 12:34 AM

Hello.


I’m sorry.

I forgot one procedure.


(A), I add one quick access key.



(1), I perform MenuRebuild.

(2), Assert appears if I perform the setting of the quick access bar.



Give my best regards


 


 

Technical Support May 12, 2009 - 1:35 PM

We added the Clipboard item into the quick access toolbar using your test project but there are no assertions appear. Could you please show us the entire call stack when the assertion occurred on your computer?

tera tera May 12, 2009 - 6:23 PM

I send call stack.


Is the information else necessary?



 


CExtRibbonOptionsPageCustomizeQATB::RibbonOptionsPage_InitContent() line 13209 + 30 bytes
CExtRibbonOptionsDialog::OnInitDialog() line 14348 + 22 bytes
AfxDlgProc(HWND__ * 0x00490542, unsigned int 272, unsigned int 5637372, unsigned int 5637372) line 35 + 14 bytes
USER32! 77cf8734()
USER32! 77d03b9c()
USER32! 77d03591()
USER32! 77d1e561()
USER32! 77cf8734()
USER32! 77cf8816()
USER32! 77cfc63f()
USER32! 77cff65d()
CWnd::DefWindowProcA(unsigned int 272, unsigned int 5637372, long 0) line 1011 + 32 bytes
CWnd::Default() line 258
CDialog::HandleInitDialog(unsigned int 5637372, unsigned int 5637372) line 624 + 8 bytes
CWnd::OnWndMsg(unsigned int 272, unsigned int 5637372, long 0, long * 0x0012dea0) line 1826 + 17 bytes
CWnd::WindowProc(unsigned int 272, unsigned int 5637372, long 0) line 1596 + 30 bytes
CExtWS<CExtResDlg,301>::WindowProc(unsigned int 272, unsigned int 5637372, long 0) line 741 + 23 bytes
CExtWA<CExtWS<CExtResDlg,301> >::WindowProc(unsigned int 272, unsigned int 5637372, long 0) line 1844 + 20 bytes
CExtResizableDialog::WindowProc(unsigned int 272, unsigned int 5637372, long 0) line 378 + 20 bytes
CExtNCW<CExtResizableDialog>::WindowProc(unsigned int 272, unsigned int 5637372, long 0) line 604 + 20 bytes
CExtRibbonOptionsDialog::WindowProc(unsigned int 272, unsigned int 5637372, long 0) line 14395 + 20 bytes
AfxCallWndProc(CWnd * 0x0012e810 {CExtRibbonOptionsDialog hWnd=???}, HWND__ * 0x00490542, unsigned int 272, unsigned int 5637372, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x00490542, unsigned int 272, unsigned int 5637372, long 0) line 379
AfxWndProcBase(HWND__ * 0x00490542, unsigned int 272, unsigned int 5637372, long 0) line 220 + 21 bytes
USER32! 77cf8734()
USER32! 77cf8816()
USER32! 77cfb4c0()
USER32! 77cfb50c()
NTDLL! 7c94e473()
USER32! 77d043e0()
USER32! 77d04704()
USER32! 77d19b0b()
CExtResDlg::CreateDlgIndirect(const DLGTEMPLATE * 0x001639d0, CWnd * 0x00389118 {CMainFrame hWnd=???}, HINSTANCE__ * 0x006b0000) line 6520 + 44 bytes
CExtResDlg::_DoModalImpl() line 6365 + 32 bytes
CExtResDlg::DoModal() line 6316 + 16 bytes
CExtRibbonBar::OnRibbonOptionsDialogTrack(unsigned int 30525) line 18554
CExtRibbonBar::_OnCmdRibbonQuickAccessToolbarCustomize() line 16967 + 21 bytes
_AfxDispatchCmdMsg(CCmdTarget * 0x00389690 {CMyRibbonBar}, unsigned int 30513, int 0, void (void)* 0x006b4c0f CExtRibbonBar::_OnCmdRibbonQuickAccessToolbarCustomize(void), void * 0x00000000, unsigned int 12, AFX_CMDHANDLERINFO * 0x00000000) line 88
CCmdTarget::OnCmdMsg(unsigned int 30513, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 302 + 39 bytes
CWnd::OnCommand(unsigned int 30513, long 0) line 2099
CWnd::OnWndMsg(unsigned int 273, unsigned int 30513, long 0, long * 0x0012fa5c) line 1608 + 28 bytes
CControlBar::WindowProc(unsigned int 273, unsigned int 30513, long 0) line 442 + 30 bytes
CExtControlBar::WindowProc(unsigned int 273, unsigned int 30513, long 0) line 8626
CExtToolControlBar::WindowProc(unsigned int 273, unsigned int 30513, long 0) line 13411
CExtRibbonPage::WindowProc(unsigned int 273, unsigned int 30513, long 0) line 6407 + 20 bytes
AfxCallWndProc(CWnd * 0x00389690 {CMyRibbonBar hWnd=???}, HWND__ * 0x003c052c, unsigned int 273, unsigned int 30513, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x003c052c, unsigned int 273, unsigned int 30513, long 0) line 379
AfxWndProcBase(HWND__ * 0x003c052c, unsigned int 273, unsigned int 30513, long 0) line 220 + 21 bytes
USER32! 77cf8734()
USER32! 77cf8816()
USER32! 77cf89cd()
USER32! 77cf96c7()
CWinThread::PumpMessage() line 853
CWinThread::Run() line 487 + 11 bytes
CWinApp::Run() line 400
AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00151f18, int 1) line 49 + 11 bytes
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00151f18, int 1) line 30
WinMainCRTStartup() line 330 + 54 bytes
KERNEL32! 7c816fe7()

 


 

tera tera May 12, 2009 - 6:45 PM