Implement IE similar History |
Post Reply |
Author | |
Wolfgang
Newbie Joined: 01 December 2003 Status: Offline Points: 36 |
Post Options
Thanks(0)
Posted: 25 June 2004 at 8:38am |
HI! I need to implement a IE similar History attched to a toolbar-button therefore i set lpCreateControl->controlType=xtpControlSplitButtonPopup; in OnCreateControl. I created a Menu with the given ID. The Button is now attached to Drop down Menu, but I can't set the items in this list. I thought that I overwrite a CXTPControlButton and can set the Items in OnCalcDynamicSize. But my Problem is that I don't get into if (lpCreateControl->nID==ID_HISTORY_POPUP) {lpCreateControl->pControl = new CXTPHistoryButton();} in OnCreateControl. Now I am a little lost. what must I do and check that i get the needed call?
Here the Functions in more detail: int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl) { bool retVal=false; if (lpCreateControl->bToolBar) {CXTPToolBar* pToolBar=DYNAMIC_DOWNCAST(CXTPToolBar, lpCreateControl->pCommandBar); if (pToolBar) { if (lpCreateControl->nID==ID_NAV_BACK) {lpCreateControl->controlType=xtpControlSplitButtonPopup; //lpCreateControl->pControl = new CXTPHistoryButton();retVal=TRUE; } else if (lpCreateControl->nID==ID_HISTORY_POPUP) {lpCreateControl->pControl = new CXTPHistoryButton();ID_NAV_BACK MENU
THanks in advance! Wolfgang |
|
Wolfgang
Newbie Joined: 01 December 2003 Status: Offline Points: 36 |
Post Options
Thanks(0)
|
sorry!! Foudn the error, i filtered it out with the toolbar check!!
nevertheless thanks! |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |