Click here to Skip to main content
15,894,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem in line plotting IN VC++ Pin
Cedric Moonen9-Feb-11 20:12
Cedric Moonen9-Feb-11 20:12 
QuestionList control in MFC Pin
Nikesh Jagtap8-Feb-11 17:24
Nikesh Jagtap8-Feb-11 17:24 
AnswerRe: List control in MFC Pin
Hans Dietrich8-Feb-11 18:29
mentorHans Dietrich8-Feb-11 18:29 
AnswerRe: List control in MFC Pin
_AnsHUMAN_ 8-Feb-11 18:34
_AnsHUMAN_ 8-Feb-11 18:34 
QuestionLogical Processors Vs Physical Processors Pin
Ahmed Charfeddine8-Feb-11 10:28
Ahmed Charfeddine8-Feb-11 10:28 
AnswerRe: Logical Processors Vs Physical Processors [modified] Pin
Luc Pattyn8-Feb-11 11:04
sitebuilderLuc Pattyn8-Feb-11 11:04 
GeneralRe: Logical Processors Vs Physical Processors Pin
Ahmed Charfeddine8-Feb-11 23:00
Ahmed Charfeddine8-Feb-11 23:00 
AnswerRe: Logical Processors Vs Physical Processors Pin
Luc Pattyn8-Feb-11 23:14
sitebuilderLuc Pattyn8-Feb-11 23:14 
GeneralRe: Logical Processors Vs Physical Processors Pin
Ahmed Charfeddine8-Feb-11 23:27
Ahmed Charfeddine8-Feb-11 23:27 
QuestionSynchronization Pin
Andry_st8-Feb-11 10:17
Andry_st8-Feb-11 10:17 
AnswerRe: Synchronization Pin
Ahmed Charfeddine8-Feb-11 10:29
Ahmed Charfeddine8-Feb-11 10:29 
AnswerRe: Synchronization Pin
Maximilien8-Feb-11 10:30
Maximilien8-Feb-11 10:30 
GeneralRe: Synchronization Pin
Andry_st9-Feb-11 0:39
Andry_st9-Feb-11 0:39 
QuestionShell's context menu items are all gray [modified] Pin
David Crow8-Feb-11 4:33
David Crow8-Feb-11 4:33 
I've got an SDI application that displays JPG files in a list control. When one of those files is right-clicked, I am displaying the context menu that is associated with JPG files (this menu is the same one that Explorer uses). The problem is that every menu option is gray, thus TrackPopupMenu() returns 0. Any ideas why?

I suspect some sort of handler is required and the framework is not finding one.

Thanks.

[edit]
Setting a new window procedure via SetWindowLong() and calling IContextMenu2::HandleMenuMsg() from within that seemed to do the trick.
[/edit]

- DC

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Man who follows car will be exhausted." - Confucius


modified on Tuesday, February 8, 2011 11:32 AM

QuestionRe: Shell's context menu items are all gray Pin
Maximilien8-Feb-11 5:06
Maximilien8-Feb-11 5:06 
AnswerRe: Shell's context menu items are all gray Pin
David Crow8-Feb-11 5:11
David Crow8-Feb-11 5:11 
GeneralRe: Shell's context menu items are all gray Pin
Maximilien8-Feb-11 6:47
Maximilien8-Feb-11 6:47 
GeneralRe: Shell's context menu items are all gray Pin
David Crow8-Feb-11 6:51
David Crow8-Feb-11 6:51 
QuestionIncremental search method for CEditview or CRicheditView Pin
ganesh.dp8-Feb-11 1:29
ganesh.dp8-Feb-11 1:29 
AnswerRe: Incremental search method for CEditview or CRicheditView Pin
Niklas L8-Feb-11 2:52
Niklas L8-Feb-11 2:52 
QuestionResizing controls as per screen resolution Pin
ddgalande8-Feb-11 1:27
ddgalande8-Feb-11 1:27 
AnswerRe: Resizing controls as per screen resolution Pin
Richard MacCutchan8-Feb-11 5:36
mveRichard MacCutchan8-Feb-11 5:36 
GeneralRe: Resizing controls as per screen resolution Pin
ddgalande18-Feb-11 0:18
ddgalande18-Feb-11 0:18 
GeneralRe: Resizing controls as per screen resolution Pin
Richard MacCutchan18-Feb-11 1:42
mveRichard MacCutchan18-Feb-11 1:42 
AnswerRe: Resizing controls as per screen resolution Pin
Cedric Moonen8-Feb-11 20:08
Cedric Moonen8-Feb-11 20:08 

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.