Questions tagged [cmenu]

CMenu is a MFC encapsulation of Windows HMENU.

CMenu provides member functions for creating, tracking, updating, and destroying a menu.

Official documentation

42 questions
0
votes
1 answer

How can I resize an application menu bar in a MFC application?

I am working with MFC and I have created succesfully custom-drawn menus. Each menu-item is measured and drawn correctly, except the mainlevel-items. The only thing I can't get done is redrawing the application menubar. I attached two images: The…
Jaap Scheper
  • 67
  • 11
0
votes
2 answers

Set CMenu item prompt at runtime

How can I set a CMenu item prompt at runtime? I know that it can be done in resource editor in VS, but I don't have such resource and create menu and it's items dynamically.
brightside90
  • 243
  • 3
  • 13
0
votes
1 answer

MFC ownerdraw menu size

I'm wondering how I can set the size of an ownerdraw CMenu using his own text. Looking at the documentation: void CColorMenu::MeasureItem(LPMEASUREITEMSTRUCT lpMIS) { // all items are of fixed size lpMIS->itemWidth = COLOR_BOX_WIDTH; …
SNC
  • 59
  • 2
  • 15
0
votes
1 answer

Menu without submenus using resource script or CMenu functions

I want to create a menu without any submenus. A common way to create a menu is: BEGIN POPUP "File" BEGIN MENUITEM "Copy", IDM_EDIT_COPY MENUITEM "Paste", IDM_EDIT_PASTE END ... END Now I just want "File" without the submenus…
user3185008
  • 121
  • 6
0
votes
0 answers

CMDIFrameWnd Caption and CMenu visually merged

My application is essentially a CMDIFrameWnd with a CMenu. Where I can start to create a visual effect that shows, as unique bar, the Caption and the menu? What I would like to obtain si something like office 2013 where the caption merge a part of…
SNC
  • 59
  • 2
  • 15
0
votes
1 answer

Yii Login Issues

My Current Navigation code is as follows widget('zii.widgets.CMenu',array( 'htmlOptions'=>array('class'=>'pull-right nav'), 'submenuHtmlOptions'=>array('class'=>'dropdown-menu'), 'itemCssClass'=>'item-test', …
Sachy
  • 45
  • 2
  • 10
0
votes
2 answers

CSS menu bar centered with dropdown

Working on a menu bar that has counter active css classes. I need the menu bar centered and the drop downs to be under the proper list item. I can get one or the other but not both to work at the same time. The menu bar changes sizes, so putting…
Sari Rahal
  • 1,897
  • 2
  • 32
  • 53
0
votes
0 answers

Yii CMenu active item sometimes sets, sometimes not

I have problems to set CMenu active item, sometimes it works, sometimes not. For my CMenu, "items" array format is: array('label'=>'LED piedāvājumu izstrāde ', 'url'=>array('/customPages/view/id/3',…
Kristīne Glode
  • 1,409
  • 4
  • 16
  • 22
0
votes
1 answer

How can I assign a class to the unordered list created by Menu Widget in Yii?

When using Yii, I am creating a menu using the CMenu widget: $this->widget('zii.widgets.CMenu',array( 'items'=>array( array('label'=>'Home', 'url'=>array('/site/index')), array('label'=>'Contact', 'url'=>array('/site/contact')), …
zeckdude
  • 15,877
  • 43
  • 139
  • 187
0
votes
1 answer

CMenu replace item with submenu

I have a MFC CMenu with some items. I would like to convert or replace a single menu item with a sub-menu, with additional menu items. Is there an easy way to do that ?
Tim
  • 41
  • 7
0
votes
1 answer

how to customize CMenu widget in Yii

How can I set CMenu to dropdown in Yii framework project to display like what is in http://www.yiiframework.com/ website.
hd.
  • 17,596
  • 46
  • 115
  • 165
0
votes
2 answers

Yii: CMenu items for different module

I'd like to make a menu in Layout which the items are linked to other different module. e.g: Item "Product" linked to an action in Product Module, item "Service" linked to an action in Service Module. It won't work when I set the…
bagz_man
  • 555
  • 2
  • 8
  • 20
1 2
3