Click here to Skip to main content
15,916,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUSB Printer Registry Association [modified] Pin
switang10-Nov-06 5:43
switang10-Nov-06 5:43 
AnswerRe: USB Printer Registry Association Pin
VonHagNDaz10-Nov-06 9:21
VonHagNDaz10-Nov-06 9:21 
GeneralRe: USB Printer Registry Association Pin
switang17-Nov-06 3:44
switang17-Nov-06 3:44 
QuestionScrollbars Menu Pin
Waldermort10-Nov-06 5:25
Waldermort10-Nov-06 5:25 
AnswerRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 5:45
Mark Salsbery10-Nov-06 5:45 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 5:59
Waldermort10-Nov-06 5:59 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 6:22
Mark Salsbery10-Nov-06 6:22 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 6:42
Waldermort10-Nov-06 6:42 
I'm not sure where it's supposed to go. According to MSDN:
"If a window does not display a shortcut menu it should pass this message to the DefWindowProc function. If a window is a child window, DefWindowProc sends the message to the parent. Otherwise, DefWindowProc displays a default shortcut menu if the specified position is in the window's caption.

DefWindowProc generates the WM_CONTEXTMENU message when it processes the WM_RBUTTONUP or WM_NCRBUTTONUP message or when the user types SHIFT+F10. The WM_CONTEXTMENU message is also generated when the user presses and releases the VK_APPS key."


Well, I am not processing it, and it is being forwarded to the SCROLLBAR class's window procedure, which should process it and display the menu. But for some reason it is being returned to my window procedure.

So the message must be getting sent to the wrong window.

To test this I have created two scroll bars, both children to the same window. One is subclassed, but the subclassing does nothing but call the old procedure. Only the subclassed control recieves the message, yet they both send it.

Is there any way to find the window it's being sent to using spy++?
GeneralRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 7:18
Mark Salsbery10-Nov-06 7:18 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 7:35
Waldermort10-Nov-06 7:35 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 8:20
Mark Salsbery10-Nov-06 8:20 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 8:26
Waldermort10-Nov-06 8:26 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 9:01
Mark Salsbery10-Nov-06 9:01 
GeneralRe: Scrollbars Menu Pin
Waldermort10-Nov-06 9:15
Waldermort10-Nov-06 9:15 
QuestionRe: Scrollbars Menu Pin
Waldermort10-Nov-06 9:22
Waldermort10-Nov-06 9:22 
GeneralRe: Scrollbars Menu Pin
Waldermort11-Nov-06 6:50
Waldermort11-Nov-06 6:50 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery11-Nov-06 7:03
Mark Salsbery11-Nov-06 7:03 
JokeOMG Pin
Monty210-Nov-06 18:42
Monty210-Nov-06 18:42 
QuestionProgram self upgrade Pin
lisoft10-Nov-06 4:04
lisoft10-Nov-06 4:04 
AnswerRe: Program self upgrade Pin
Mr.Brainley10-Nov-06 4:29
Mr.Brainley10-Nov-06 4:29 
AnswerRe: Program self upgrade Pin
Mark Salsbery10-Nov-06 5:31
Mark Salsbery10-Nov-06 5:31 
AnswerRe: Program self upgrade Pin
Wes Aday10-Nov-06 10:39
professionalWes Aday10-Nov-06 10:39 
GeneralRe: Program self upgrade Pin
lisoft11-Nov-06 2:43
lisoft11-Nov-06 2:43 
QuestionIn Context Menu "Application Focus is lost " Pin
pgirish10-Nov-06 3:23
pgirish10-Nov-06 3:23 
AnswerRe: In Context Menu "Application Focus is lost " Pin
Rage10-Nov-06 4:40
professionalRage10-Nov-06 4:40 

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.