943,740 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 3182
  • C++ RSS
Jun 8th, 2007
0

Popup Menu displays as very thin box

Expand Post »
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:
C++ Syntax (Toggle Plain Text)
  1. popupmenu MENU
  2. BEGIN
  3. MENUITEM "&Config",4001
  4. MENUITEM SEPARATOR
  5. MENUITEM "E&xit",4002
  6. END
Similar Threads
Reputation Points: 85
Solved Threads: 45
Posting Whiz in Training
dougy83 is offline Offline
275 posts
since Jun 2007
Jun 8th, 2007
0

Re: Popup Menu displays as very thin box

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.
Reputation Points: 23
Solved Threads: 5
Posting Whiz in Training
bops is offline Offline
214 posts
since Aug 2005
Jun 8th, 2007
0

Re: Popup Menu displays as very thin box

Doug,

I don't think it is a problem with the resource file. Show the code where you are displaying the menu.
Moderator
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
WolfPack is offline Offline
1,559 posts
since Jun 2005
Jun 10th, 2007
0

Re: Popup Menu displays as very thin box

Click to Expand / Collapse  Quote originally posted by WolfPack ...
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.
Reputation Points: 85
Solved Threads: 45
Posting Whiz in Training
dougy83 is offline Offline
275 posts
since Jun 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: need help with error
Next Thread in C++ Forum Timeline: Return Array from C++





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC