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

)