Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Scrollbars Menu Pin
Mark Salsbery10-Nov-06 7:18
Mark Salsbery10-Nov-06 7:18 
WalderMort wrote:
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.


How do you know the scrollbar you haven't subclassed isn't getting the message if you haven't
subclassed it?

Based on the behavior you describe, it sounds like the default processing is handled by the
window containing the scrollbar, not by the scroll bar itself. What I mean is, with a basic
window (no subclass or anything) the SCROLLBAR class does nothing with the WM_CONTEXTMENU so it
passes it along to DefWindowProc which forwards it to the parent, the window containing the
scrollbar. The parent displays the scrollbar context menu. So, intercepting it in the
subclassed SCROLLBAR but doing nothing except letting the scrollbar handle it, it ends up back at
the parent window again.
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 
QuestionStrange error with overloaded function name Pin
Mr.Brainley10-Nov-06 2:45
Mr.Brainley10-Nov-06 2:45 

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.