Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Adding Bitmap to Submenu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding Bitmap to Submenu

 Post Reply Post Reply
Author
Message
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Topic: Adding Bitmap to Submenu
    Posted: 05 August 2004 at 10:12am

How can I set the Bitmap of a submenu with Toolkit Pro 8.7 ?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 August 2004 at 3:18am

int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{
 if (lpCreateControl->bToolBar == FALSE)
 {
  if (lpCreateControl->controlType == xtpControlPopup && lpCreateControl->strCaption == _T("&Favoriten"))
  {
   CXTPControlPopup* pControl = CXTPControlPopup::CreateControlPopup(xtpControlPopup);     
   pControl->SetStyle(xtpButtonIconAndCapt ion);
   lpCreateControl->nID = ID_EXTRAS_FAFORITE;
   
   
   CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());
   pPopupBar->LoadMenu(lpCreateControl-> ;pMenu->GetSubMenu(lpCreateControl->nIndex), FALSE);

   pControl->SetCommandBar(pPopupBar);
   pPopupBar->InternalRelease();

   lpCreateControl->pControl = pControl;    
   return TRUE;
  }

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.