Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow anti spy wares work? Pin
Joseph Marzbani18-Oct-09 19:47
Joseph Marzbani18-Oct-09 19:47 
AnswerRe: how anti spy wares work? Pin
Adam Roderick J18-Oct-09 19:58
Adam Roderick J18-Oct-09 19:58 
GeneralRe: how anti spy wares work? Pin
Joseph Marzbani18-Oct-09 20:08
Joseph Marzbani18-Oct-09 20:08 
QuestionHow to End a Cdialog Pin
ForNow18-Oct-09 7:21
ForNow18-Oct-09 7:21 
AnswerRe: How to End a Cdialog Pin
«_Superman_»18-Oct-09 7:27
professional«_Superman_»18-Oct-09 7:27 
GeneralRe: How to End a Cdialog Pin
ForNow18-Oct-09 8:16
ForNow18-Oct-09 8:16 
QuestionToo-narrow popup menu using LoadMenuIndirect&TrackPopupMenu Pin
Lianqing18-Oct-09 5:12
Lianqing18-Oct-09 5:12 
AnswerRe: Too-narrow popup menu using LoadMenuIndirect&TrackPopupMenu Pin
Code-o-mat18-Oct-09 9:45
Code-o-mat18-Oct-09 9:45 
Next time, please put your code between <pre> and </pre> tags to make it more readable, if you post this much code this way people won't really feel like reading it thorough.
Anyways, i think what you need to do is to gain the handle of the first popup submenu from the menu you loaded and feed that to TrackPopupMenuEx instead of giving it the menu itself.
So instead of this:
TrackPopupMenu(hMenu, TPM_RIGHTBUTTON, point.x, point.y, 0, hwnd, NULL);

try this:
HMENU hPopupThis = GetSubMenu(hMenu, 0);
TrackPopupMenu(hPopupThis, TPM_RIGHTBUTTON, point.x, point.y, 0, hwnd, NULL);


> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

GeneralRe: Too-narrow popup menu using LoadMenuIndirect&TrackPopupMenu Pin
Lianqing18-Oct-09 14:34
Lianqing18-Oct-09 14:34 
GeneralRe: Too-narrow popup menu using LoadMenuIndirect&TrackPopupMenu Pin
«_Superman_»18-Oct-09 17:53
professional«_Superman_»18-Oct-09 17:53 
Questionusing cout i get symbols instead address [Solved] Pin
Tadysas18-Oct-09 4:19
Tadysas18-Oct-09 4:19 
AnswerRe: using cout i get symbols instead address Pin
Cedric Moonen18-Oct-09 4:44
Cedric Moonen18-Oct-09 4:44 
AnswerRe: using cout i get symbols instead address Pin
Mircea Puiu18-Oct-09 4:49
Mircea Puiu18-Oct-09 4:49 
GeneralRe: using cout i get symbols instead address [solved] Pin
Tadysas18-Oct-09 7:36
Tadysas18-Oct-09 7:36 
Questionhow to release space of link nodes recursively? Pin
jianzhuhuai17-Oct-09 14:38
jianzhuhuai17-Oct-09 14:38 
AnswerRe: how to release space of link nodes recursively? Pin
Stuart Dootson17-Oct-09 15:10
professionalStuart Dootson17-Oct-09 15:10 
GeneralRe: how to release space of link nodes recursively? Pin
jianzhuhuai18-Oct-09 23:10
jianzhuhuai18-Oct-09 23:10 
GeneralRe: how to release space of link nodes recursively? Pin
Stuart Dootson19-Oct-09 0:32
professionalStuart Dootson19-Oct-09 0:32 
GeneralRe: how to release space of link nodes recursively? Pin
jianzhuhuai20-Oct-09 0:43
jianzhuhuai20-Oct-09 0:43 
QuestionHelp with a Function related with Circular Linked List Pin
Naumf17-Oct-09 12:30
Naumf17-Oct-09 12:30 
AnswerRe: Help with a Function related with Circular Linked List Pin
«_Superman_»17-Oct-09 13:08
professional«_Superman_»17-Oct-09 13:08 
GeneralRe: Help with a Function related with Circular Linked List Pin
Naumf18-Oct-09 3:00
Naumf18-Oct-09 3:00 
QuestionRe: Help with a Function related with Circular Linked List Pin
David Crow17-Oct-09 16:53
David Crow17-Oct-09 16:53 
AnswerRe: Help with a Function related with Circular Linked List Pin
Naumf18-Oct-09 3:04
Naumf18-Oct-09 3:04 
AnswerRe: Help with a Function related with Circular Linked List Pin
David Crow18-Oct-09 13:03
David Crow18-Oct-09 13:03 

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.