Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Toolbar->menu->toolbox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar->menu->toolbox

 Post Reply Post Reply
Author
Message Reverse Sort Order
Grey-Wolf View Drop Down
Newbie
Newbie
Avatar

Joined: 16 April 2004
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Grey-Wolf Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar->menu->toolbox
    Posted: 21 April 2004 at 7:48am

Thanks,

I now have the following code in OnCreateCommandBar(...)

if (lpCreatePopup->bPopup && _tcscmp(lpCreatePopup->lpcstrCaption, _T("Basic Shapes")) == 0)

{

CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());

pPopupBar->SetTearOffPopup(_T("Basic Shapes"), ID_BASIC_SHAPES);

pPopupBar->LoadToolBar(IDR_BASIC_SHAPES);

lpCreatePopup->pCommandBar = pPopupBar;

return TRUE;

}

 

How do I set CXTPPopupBar to display Icons only in a grid?  I have over 30 toolbar items on some of the menus.

Thanks

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2004 at 10:46am
Yes, this is possible.  Take a look at the TearOff Popups sample to see how to do this.

Edited by SuperMario
Back to Top
Grey-Wolf View Drop Down
Newbie
Newbie
Avatar

Joined: 16 April 2004
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Grey-Wolf Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2004 at 7:58am

Hello all,

 

I want to create a menu on a toolbar button that has a toolbox on the menu items, an example of the sort of thing I am looking for is the AutoShapes menu on the drawing toolbar of word.

 

Is this possible? If so how would I go about doing it?

 

Thanks

 

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.156 seconds.