Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to hide a process? Pin
CPallini18-Oct-09 22:48
mveCPallini18-Oct-09 22:48 
GeneralRe: how to hide a process? Pin
Rozis19-Oct-09 10:09
Rozis19-Oct-09 10:09 
AnswerRe: how to hide a process? Pin
Rajesh R Subramanian18-Oct-09 23:27
professionalRajesh R Subramanian18-Oct-09 23:27 
GeneralRe: how to hide a process? Pin
linfei200918-Oct-09 23:46
linfei200918-Oct-09 23:46 
GeneralRe: how to hide a process? Pin
Rajesh R Subramanian19-Oct-09 0:14
professionalRajesh R Subramanian19-Oct-09 0:14 
AnswerRe: how to hide a process? Pin
wangningyu19-Oct-09 2:26
wangningyu19-Oct-09 2:26 
AnswerRe: how to hide a process? Pin
carly3321-Oct-09 0:43
carly3321-Oct-09 0:43 
GeneralRe: how to hide a process? Pin
NormDroid21-Oct-09 1:13
professionalNormDroid21-Oct-09 1:13 
QuestionMemory Exception Pin
Le@rner18-Oct-09 20:44
Le@rner18-Oct-09 20:44 
AnswerRe: Memory Exception Pin
«_Superman_»18-Oct-09 21:07
professional«_Superman_»18-Oct-09 21:07 
AnswerRe: Memory Exception Pin
CPallini18-Oct-09 22:15
mveCPallini18-Oct-09 22:15 
QuestionHow to use JavaScript Functions in VC6 ?? Pin
wangningyu18-Oct-09 20:03
wangningyu18-Oct-09 20:03 
AnswerRe: How to use JavaScript Functions in VC6 ?? Pin
Joseph Marzbani18-Oct-09 20:21
Joseph Marzbani18-Oct-09 20:21 
AnswerRe: How to use JavaScript Functions in VC6 ?? Pin
Adam Roderick J18-Oct-09 20:27
Adam Roderick J18-Oct-09 20:27 
AnswerRe: How to use JavaScript Functions in VC6 ?? Pin
CPallini18-Oct-09 20:28
mveCPallini18-Oct-09 20:28 
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 

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.