Popup Menu displays as very thin box

Thread Solved
Reply

Join Date: Jun 2007
Posts: 275
Reputation: dougy83 is on a distinguished road 
Solved Threads: 45
dougy83 dougy83 is offline Offline
Posting Whiz in Training

Popup Menu displays as very thin box

 
0
  #1
Jun 8th, 2007
Hi everyone,

I'm a newbie here, and have a newbie question.

I'm trying to get a popup menu to show just above my system tray icon/notifyIcon. I'm using TrackPopupMenuEx to display the menu, loaded from my application. The problem is that menu is displayed as a really thin menu, so that no text is visible. The id values 4001 or 4002 come in WM_COMMAND msgs to my window. How do I get my menu to display properly??

PS I'm using dev-c++.

Thanks for any help!
-Doug

The menu in the .rc file is:
  1. popupmenu MENU
  2. BEGIN
  3. MENUITEM "&Config",4001
  4. MENUITEM SEPARATOR
  5. MENUITEM "E&xit",4002
  6. END
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 188
Reputation: bops is an unknown quantity at this point 
Solved Threads: 3
bops bops is offline Offline
Junior Poster

Re: Popup Menu displays as very thin box

 
0
  #2
Jun 8th, 2007
You should really post some code to show what you are doing so people can pick out what you are doing wrong and help correct it. I have no idea on this one, but if you post some code, surely a more experienced member will be able to help you out.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Popup Menu displays as very thin box

 
0
  #3
Jun 8th, 2007
Doug,

I don't think it is a problem with the resource file. Show the code where you are displaying the menu.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 275
Reputation: dougy83 is on a distinguished road 
Solved Threads: 45
dougy83 dougy83 is offline Offline
Posting Whiz in Training

Re: Popup Menu displays as very thin box

 
0
  #4
Jun 10th, 2007
Originally Posted by WolfPack View Post
Doug,

I don't think it is a problem with the resource file. Show the code where you are displaying the menu.
Thanks for the reply bops & WolfPack. I found that both the resource file needed changing to have a dummy MENU containing a POPUP that I wanted to display, and the trackpopupmenu fn needed the submenu extracted with GetSubMenu(Menu, 0).

Silly me, thanks for your time though.

-Doug
Last edited by dougy83; Jun 10th, 2007 at 5:50 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC