Print Page | Close Window

Implement IE similar History

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=892
Printed Date: 01 June 2024 at 1:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Implement IE similar History
Posted By: Wolfgang
Subject: Implement IE similar History
Date 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
BEGIN
    POPUP "History"
    BEGIN
        MENUITEM "History",        &n bsp;        ID_HISTORY_POPUP

 

THanks in advance!

Wolfgang





Replies:
Posted By: Wolfgang
Date Posted: 25 June 2004 at 8:44am

sorry!!

Foudn the error, i filtered it out with  the toolbar check!!

 

nevertheless thanks!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net