Home > Software engineering >  About MFC list control
About MFC list control

Time:11-23

Why would an exception?

CodePudding user response:

P pointer is NULL, check whether the pointer to effectively

CodePudding user response:

reference 1/f, 7-eleven's response:
p pointer is NULL, the pointer to check whether effective ~

When I don't to Null Pointers, I can't open this list control display dialog box, do not know why, is a pointer of crossing the line?

CodePudding user response:

Void CMyListCtrl: : PreSubclassWindow ()
{
//TODO: Add your specialized code here and/or call the base class
DWORD dwStyle=GetExtendedStyle ();
DwStyle |=LVS_EX_FULLROWSELECT;
DwStyle |=LVS_EX_GRIDLINES;
SetExtendedStyle (dwStyle);
//
CListCtrl: : PreSubclassWindow ();
}

CodePudding user response:

The
reference 3 floor schlafenhamster response:
void CMyListCtrl: : PreSubclassWindow ()
{
//TODO: Add your specialized code here and/or call the base class
DWORD dwStyle=GetExtendedStyle ();
DwStyle |=LVS_EX_FULLROWSELECT;
DwStyle |=LVS_EX_GRIDLINES;
SetExtendedStyle (dwStyle);
//
CListCtrl: : PreSubclassWindow ();
}

The elder brothers, to explain what does that mean

CodePudding user response:

refer to the second floor weixin_43725438 response:
Quote: reference 1/f, 7-eleven's response:
p pointer is NULL, the pointer to check whether effective ~

When I don't to Null Pointers, I can't open this list control display dialog box, do not know why, is a pointer of crossing the line?

You step order to perform the following to see the Debug mode, each pointer is what?
  • Related