Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A beginner's confusion. Pin
Shog913-Oct-02 5:08
sitebuilderShog913-Oct-02 5:08 
GeneralRe: A beginner's confusion. Pin
Joaquín M López Muñoz13-Oct-02 4:34
Joaquín M López Muñoz13-Oct-02 4:34 
GeneralRe: A beginner's confusion. Pin
Shog913-Oct-02 5:09
sitebuilderShog913-Oct-02 5:09 
GeneralUrlEscape Error Pin
John Bosko12-Oct-02 21:04
John Bosko12-Oct-02 21:04 
GeneralRe: UrlEscape Error Pin
Stephane Rodriguez.12-Oct-02 21:33
Stephane Rodriguez.12-Oct-02 21:33 
GeneralRe: UrlEscape Error Pin
Dominik Reichl13-Oct-02 1:45
Dominik Reichl13-Oct-02 1:45 
GeneralRe: UrlEscape Error Pin
Stephane Rodriguez.13-Oct-02 5:43
Stephane Rodriguez.13-Oct-02 5:43 
GeneralA subclassed CStatic control and WM_RBUTTONDOWN Pin
xeonboy12-Oct-02 19:56
xeonboy12-Oct-02 19:56 
Now, I've created a control by subclassing it from CStatic.
The thing is :

I wanna place this control on a dialog, and when the user right-click on a certain spot on this control, a pop-up menu should show up.
The problem is : although this subclassed control exposes/supports the WM_RBUTTONDOWN message within it's class, when I wanna use it from the main dialog, ClassWizard shows only the BN_CLICKED message!

Of course, I can add the WM_RBUTTONDOWN message handler to the main dialog class and test if the right mouse button was clicked within this subclassed static control, but the fact is : this message isn't being sent!
I mean, yes. It is sent when I right-mouse click outside the subclassed control, but when I right-mouse clicked inside the control, this WM_RBUTTONDOWN message isn't being sent, so this approach is useless.
I've added the SS_NOTIFY style to this subclassed control, but useless either.

What I wanna do is to "force" this subclassed static control to expose the WM_RBUTTONDOWN message handler, just like the way the BN_CLICKED message handler of this sub-classed static control is exposed. Does anyone have any ideas? Please and thanks a lot! Smile | :) Big Grin | :-D

......
GeneralRe: A subclassed CStatic control and WM_RBUTTONDOWN Pin
Gary R. Wheeler13-Oct-02 4:29
Gary R. Wheeler13-Oct-02 4:29 
GeneralScott Meyers' Effective STL :: C++ Pin
valikac12-Oct-02 17:37
valikac12-Oct-02 17:37 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
Michael Dunn12-Oct-02 18:24
sitebuilderMichael Dunn12-Oct-02 18:24 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
Jim Crafton12-Oct-02 19:07
Jim Crafton12-Oct-02 19:07 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
Paul M Watt12-Oct-02 19:52
mentorPaul M Watt12-Oct-02 19:52 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
Daniel Turini12-Oct-02 22:03
Daniel Turini12-Oct-02 22:03 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
Paul M Watt12-Oct-02 18:22
mentorPaul M Watt12-Oct-02 18:22 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
valikac12-Oct-02 18:34
valikac12-Oct-02 18:34 
GeneralHelp pls! Pin
oly200212-Oct-02 16:02
oly200212-Oct-02 16:02 
GeneralRe: Help pls! Pin
tongc12-Oct-02 16:37
tongc12-Oct-02 16:37 
GeneralRe: Help pls! Pin
Anonymous12-Oct-02 16:49
Anonymous12-Oct-02 16:49 
GeneralRe: Help pls! Pin
tongc12-Oct-02 16:57
tongc12-Oct-02 16:57 
GeneralRe: Help pls! Pin
Anonymous12-Oct-02 17:06
Anonymous12-Oct-02 17:06 
GeneralRe: Help pls! Pin
tongc12-Oct-02 17:10
tongc12-Oct-02 17:10 
GeneralRe: Help pls! Pin
oly200212-Oct-02 20:03
oly200212-Oct-02 20:03 
GeneralRe: Help pls! Pin
Gary R. Wheeler13-Oct-02 4:43
Gary R. Wheeler13-Oct-02 4:43 
GeneralIdentify blank line with gets() function!! Pin
tongc12-Oct-02 15:17
tongc12-Oct-02 15:17 

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.