Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Implement IE similar History
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Implement IE similar History

 Post Reply Post Reply
Author
Message
Wolfgang View Drop Down
Newbie
Newbie


Joined: 01 December 2003
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wolfgang Quote  Post ReplyReply Direct Link To This Post Topic: Implement IE similar History
    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


Back to Top
Wolfgang View Drop Down
Newbie
Newbie


Joined: 01 December 2003
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wolfgang Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2004 at 8:44am

sorry!!

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

 

nevertheless thanks!

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.049 seconds.