LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2004, 09:27 AM   #1
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
Creating Pop-ups in Visual C++ (MFC Project)


Hy!

I know this isn't a windows help forum, but i really don't know another place to ask this question.

I am programing a window commander like application for windows in MS Visual Studio 6.0 (MFC Project). I want to add a pop-up menu to the main window. I've created the menu, and connected it with right click on an item in the main window. It actually works, but unfortunately the pop-up appears as shown on the picture below:

http://razor.arnes.si/~ukolar1/PopUp.jpg

And here's the picture how it should look like:

http://razor.arnes.si/~ukolar1/PopUpShould.jpg

Here's the code which connects the PopUp menu with right click:

Code:
	
  CMenu menu;
  VERIFY(menu.LoadMenu(IDR_MENU1));
  menu.TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,500,300,AfxGetMainWnd(),NULL);
(The x and y coordinates are static, cause i've to fix the appearance of pop-up, before going further)

How can i display the pop-up as it should be? (and if somebody knows a better place - windows related - to ask this question, so he/she may speak up )
 
Old 08-18-2004, 02:22 PM   #2
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Rep: Reputation: 30
http://www.gidforums.com/f-46.html
http://www.codeguru.com/forum/forumdisplay.php?f=7

Just look on google
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pop-ups in Browsers dehuszar Programming 3 01-08-2005 02:10 PM
pop ups brokenflea Slackware 1 03-25-2004 02:52 PM
Blocking Pop-ups Time Lord Linux - Software 6 09-23-2003 07:23 AM
Pop ups mylo2003 General 10 09-12-2003 03:37 PM
pop ups popcorn5714 Linux - Software 3 03-04-2003 10:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration