Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCPoint and Popup Menus.. Pin
adonisv5-Mar-03 17:28
adonisv5-Mar-03 17:28 
GeneralRe: CPoint and Popup Menus.. Pin
Dave Bryant5-Mar-03 17:31
Dave Bryant5-Mar-03 17:31 
GeneralRe: CPoint and Popup Menus.. Pin
Ryan Binns5-Mar-03 21:01
Ryan Binns5-Mar-03 21:01 
GeneralRe: CPoint and Popup Menus.. Pin
adonisv6-Mar-03 7:03
adonisv6-Mar-03 7:03 
GeneralIt's still not working! Pin
adonisv6-Mar-03 7:38
adonisv6-Mar-03 7:38 
GeneralRe: It's still not working! Pin
Ryan Binns6-Mar-03 13:00
Ryan Binns6-Mar-03 13:00 
GeneralGot a teeny tiny menu going! Pin
adonisv7-Mar-03 13:22
adonisv7-Mar-03 13:22 
GeneralRe: Got a teeny tiny menu going! Pin
Ryan Binns7-Mar-03 15:39
Ryan Binns7-Mar-03 15:39 
You can't adjust the size or shape of the menu (not without using owner-draw anyway), but 99.9% of the time you won't have to. Windows will automatically size the menu based on its contents.

What you have done here is created a menu with a single item in it - a submenu that has no items, and you haven't given the submenu a name. If an item's name has no characters, then nothing is displayed and the menu is very thin, which is exactly what is happening.

To add useful items to your menu, use the following:
<br />
newMenu.InsertMenu(nPosition, MF_BYPOSITION | MF_STRING, ID_MENU_ITEM, strMenuText);<br />


Where:
ID_MENU_ITEM is the menu item identifier of your menu item
strMenuText is the text of your menu item ("Cut", "Copy", etc...)


Ryan

He who laughs last thinks too slowly.
GeneralWhat's the diff between load and insert menu? Pin
adonisv9-Mar-03 6:44
adonisv9-Mar-03 6:44 
GeneralRe: What's the diff between load and insert menu? Pin
Ryan Binns9-Mar-03 13:41
Ryan Binns9-Mar-03 13:41 
GeneralOh man it works!!! Yeeeeeeaaaahhh! Pin
adonisv10-Mar-03 15:58
adonisv10-Mar-03 15:58 
GeneralJPEG,GIF header Pin
RaajaOfSelf5-Mar-03 17:07
RaajaOfSelf5-Mar-03 17:07 
GeneralRe: JPEG,GIF header Pin
Dave Bryant5-Mar-03 17:18
Dave Bryant5-Mar-03 17:18 
QuestionSearch for Safe worker thread? Pin
chen5-Mar-03 16:05
chen5-Mar-03 16:05 
AnswerRe: Search for Safe worker thread? Pin
Hans Ruck5-Mar-03 22:37
Hans Ruck5-Mar-03 22:37 
GeneralRe: Search for Safe worker thread? Pin
chen6-Mar-03 0:49
chen6-Mar-03 0:49 
GeneralRe: Search for Safe worker thread? Pin
Hans Ruck6-Mar-03 1:00
Hans Ruck6-Mar-03 1:00 
GeneralRe: Search for Safe worker thread? Pin
chen6-Mar-03 1:12
chen6-Mar-03 1:12 
GeneralRe: Search for Safe worker thread? Pin
Hans Ruck6-Mar-03 1:47
Hans Ruck6-Mar-03 1:47 
GeneralRe: Search for Safe worker thread? Pin
chen6-Mar-03 2:01
chen6-Mar-03 2:01 
GeneralRe: Search for Safe worker thread? Pin
chen6-Mar-03 2:21
chen6-Mar-03 2:21 
GeneralRe: Search for Safe worker thread? Pin
Hans Ruck6-Mar-03 2:38
Hans Ruck6-Mar-03 2:38 
GeneralRe: Search for Safe worker thread? Pin
chen6-Mar-03 2:59
chen6-Mar-03 2:59 
GeneralRe: Search for Safe worker thread? Pin
Hans Ruck6-Mar-03 3:11
Hans Ruck6-Mar-03 3:11 
Generalc library Pin
ferdykdb5-Mar-03 15:47
ferdykdb5-Mar-03 15:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.