Home > Software engineering >  The CheckBox ListCtrl, how to let the Check of a line is grey an editing status?
The CheckBox ListCtrl, how to let the Check of a line is grey an editing status?

Time:03-23

Is required to open the first line of the CHECK LIST is selected by default, and buy the ash cannot edit
Selected ready not edit don't know how to do it?

CodePudding user response:

DDDDDDDDDDDDDDD

CodePudding user response:

//the first writing:
The CWnd * pWnd=GetDlgItem (IDC_EDIT1);
PWnd - & gt; The EnableWindow (FALSE);
PWnd - & gt; The EnableWindow (TRUE);//enabled

//the second writing:
GetDlgItem (IDC_EDIT1) - & gt; The EnableWindow (FALSE);//FALSE grey (not available)
GetDlgItem (IDC_EDIT1) - & gt; The EnableWindow (TRUE);//TRUE light (available), the default is TRUE

Can I look at this blog, has introduced: https://blog.csdn.net/m0_43458204/article/details/107916149

CodePudding user response:


Diagram is an editor

CodePudding user response:

MFC Grid control

  • Related