Click here to Skip to main content
15,889,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with messages reaching the appropriate class Pin
neil478121-Oct-07 11:01
neil478121-Oct-07 11:01 
AnswerRe: Problem with messages reaching the appropriate class Pin
Mark Salsbery21-Oct-07 11:47
Mark Salsbery21-Oct-07 11:47 
GeneralRe: Problem with messages reaching the appropriate class Pin
neil478121-Oct-07 12:27
neil478121-Oct-07 12:27 
GeneralRe: Problem with messages reaching the appropriate class Pin
Mark Salsbery21-Oct-07 13:12
Mark Salsbery21-Oct-07 13:12 
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 
Hmm beats me what's going on.

Are you sure you're using a variable of the derived list control type and
not a CListCtrl?

I did a quick test....this wizard-generated code worked fine for me:
IMPLEMENT_DYNAMIC(CReflectedListCtrl, CListCtrl)

CReflectedListCtrl::CReflectedListCtrl()
{

}

CReflectedListCtrl::~CReflectedListCtrl()
{
}


BEGIN_MESSAGE_MAP(CReflectedListCtrl, CListCtrl)
    ON_NOTIFY_REFLECT(NM_RCLICK, &CReflectedListCtrl::OnNMRClick)
END_MESSAGE_MAP()



// CReflectedListCtrl message handlers


void CReflectedListCtrl::OnNMRClick(NMHDR *pNMHDR, LRESULT *pResult)
{
    LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
    // TODO: Add your control notification handler code here
    *pResult = 0;
}

There's always WM_CONTEXTMENU too... Smile | :)





Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
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 

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.