MFC CListView =NM_CLICK Generated Code is incorrect - by drspsc

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 339678 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 4/23/2008 2:30:46 PM
Access Restriction Public

Description

The generated code for an MFC CListView =NM_CLICK message is incorrect:

Generated Code:
void MyView::OnNMClick(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<NMITEMACTIVATE>(pNMHDR);

When Complied:
error C2440: 'reinterpret_cast' : cannot convert from 'NMHDR *' to 'NMITEMACTIVATE'

The generated code should be:
	LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);

Sign in to post a comment.
Posted by N. Bauland on 7/19/2008 at 10:22 AM
French version product has same problem.
Posted by Microsoft on 4/23/2008 at 9:03 PM
Thanks for your feedback.

We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you,
Visual Studio Product Team