Click here to Skip to main content
15,909,324 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with messages reaching the appropriate class Pin
neil478121-Oct-07 13:15
neil478121-Oct-07 13:15 
GeneralRe: Problem with messages reaching the appropriate class Pin
Mark Salsbery21-Oct-07 13:38
Mark Salsbery21-Oct-07 13:38 
GeneralRe: Problem with messages reaching the appropriate class Pin
neil478121-Oct-07 13:40
neil478121-Oct-07 13:40 
GeneralRe: Problem with messages reaching the appropriate class Pin
Mark Salsbery21-Oct-07 14:20
Mark Salsbery21-Oct-07 14:20 
GeneralRe: Problem with messages reaching the appropriate class Pin
neil478121-Oct-07 14:49
neil478121-Oct-07 14:49 
GeneralRe: Problem with messages reaching the appropriate class Pin
Mark Salsbery21-Oct-07 15:21
Mark Salsbery21-Oct-07 15:21 
GeneralRe: Problem with messages reaching the appropriate class Pin
neil478121-Oct-07 15:22
neil478121-Oct-07 15:22 
GeneralRe: Problem with messages reaching the appropriate class Pin
Mark Salsbery21-Oct-07 16:06
Mark Salsbery21-Oct-07 16:06 
Try this in your test app...

1) get rid of the other CListCtrl class you made

2) In project menu (or class view window, right-click the project) choose Add.../Class...
choose the mfc category....go through the wizard to create the CListCtrl-derived class.
Note this is NOT from the dialog editor!

3) You should now have an empty class derived from CListCtrl.  In class view, find your
new class, right-click it, and choose properties.

4) In the properties window, click the messages button - scroll down to "=NM_RCLICK" and
add a reflected handler for it using the drop-down to the right of "=NM_RCLICK".

5) Back in the dialog class, make sure you use a control variable of your new class type.
Also make sure you have a DDX_Control() entry in the dialog's DoDataExchange override
so the control object properly attaches to/subclasses the control window.


Maybe you were missing step 5 above??

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Problem with messages reaching the appropriate class [modified] Pin
neil478121-Oct-07 17:35
neil478121-Oct-07 17:35 
GeneralRe: Problem with messages reaching the appropriate class Pin
Mark Salsbery23-Oct-07 7:46
Mark Salsbery23-Oct-07 7:46 
GeneralRe: Problem with messages reaching the appropriate class Pin
neil478123-Oct-07 10:23
neil478123-Oct-07 10:23 
QuestionConvert TIFF to bmp Pin
Romiks21-Oct-07 8:58
Romiks21-Oct-07 8:58 
AnswerRe: Convert TIFF to bmp Pin
Chris Losinger21-Oct-07 9:22
professionalChris Losinger21-Oct-07 9:22 
GeneralRe: Convert TIFF to bmp Pin
Romiks21-Oct-07 19:01
Romiks21-Oct-07 19:01 
GeneralRe: Convert TIFF to bmp Pin
Romiks22-Oct-07 1:53
Romiks22-Oct-07 1:53 
GeneralRe: Convert TIFF to bmp Pin
JudyL_MD22-Oct-07 4:06
JudyL_MD22-Oct-07 4:06 
AnswerRe: Convert TIFF to bmp Pin
Christian Graus21-Oct-07 12:47
protectorChristian Graus21-Oct-07 12:47 
QuestionHow Does Context Menu in IE Woks Pin
vikrant kpr21-Oct-07 8:04
vikrant kpr21-Oct-07 8:04 
Generalplease help is urgent im dying Pin
shiroze21-Oct-07 5:53
shiroze21-Oct-07 5:53 
GeneralRe: please help is urgent im dying Pin
Leslie Sanford21-Oct-07 7:31
Leslie Sanford21-Oct-07 7:31 
GeneralRe: please help is urgent im dying Pin
Hamid_RT21-Oct-07 7:55
Hamid_RT21-Oct-07 7:55 
GeneralRe: please help is urgent im dying Pin
lgbean21-Oct-07 9:35
lgbean21-Oct-07 9:35 
Generalbinary search tree- load from file Pin
shiroze21-Oct-07 5:44
shiroze21-Oct-07 5:44 
GeneralRe: binary search tree- load from file Pin
Hamid_RT21-Oct-07 8:07
Hamid_RT21-Oct-07 8:07 
QuestionRe: binary search tree- load from file Pin
David Crow22-Oct-07 5:18
David Crow22-Oct-07 5:18 

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.