Home > Software engineering >  Double-click the ListControl blank position error: r6010 abort has had called
Double-click the ListControl blank position error: r6010 abort has had called

Time:10-20

Error trigger point is: double-click ListControl controls blank areas, but the strange thing is, all normal Windows 7, under win10 just complains,

Here is dedicated to deal with double click on the blank area code:

LPNMITEMACTIVATE pNMItemActivate=reinterpret_cast & lt; LPNMITEMACTIVATE> (pNMHDR);
//TODO: add the control notification handler code
Int nRow=m_testLC. GetNextItem (1, LVNI_SELECTED);

If (nRow==1) {
return;
}

Double click on the blank lines can catch under the Windows 7 event triggered by a mouse click, Win10 cannot capture, it should be said that doesn't trigger the double-click events, and error in transactions such as the title: termination is called!

I set the breakpoint in all methods (including redraw LC control), but can have no before the triggering error trigger these breakpoints,

At the same time, I also checked other bosses solution, I don't feel very suitable for me, the consult everybody, this is precisely what, thank you very much!!!!!!

CodePudding user response:

https://www.cnblogs.com/yxwkf/p/5247046.html


CodePudding user response:

reference 1st floor zgl7903 response:
https://www.cnblogs.com/yxwkf/p/5247046.html
thank moderator, this scheme, I also found the but not for me,

CodePudding user response:

Collapses, click retry, watching the call stack, step by step analysis of the code modifications you solve

CodePudding user response:

Processing double-click area? There is no ITEM!

CodePudding user response:

Void CListCtrl3Dlg: : OnDblclk Database (pResult LRESULT pNMHDR NMHDR *, *)
{
//TODO: Add your the control notification handler code here

* pResult=0;
}

CodePudding user response:

In OnDblclk check in the margins

CodePudding user response:

Zgl7903
reference 4 floor response:
collapses, click retry, see the call stack, step by step analysis of the code modifications you solve
development environment on Windows 7, can't watch on win10 stack, if still can't find the way, I'll win10 in an environment, to test, thank you!

CodePudding user response:

reference 5 floor schlafenhamster reply:
processing double-click area? There is no ITEM!
processing code, but the problem is on the win10 didn't enter the double-click event, program will crash...

CodePudding user response:

refer to 7th floor schlafenhamster response:
in OnDblclk check in the margins
processing code, but the problem is on the win10 didn't enter the double-click event, program will crash...
  • Related