How do you draw this interface using MFC, a great god guide,
CodePudding user response:
In ListCtrlCodePudding user response:
Look at the bottom of * more like CMsDgridCtrl controlsCodePudding user response:
https://www.codeproject.com/Articles/7370/CGridCtrlCodePudding user response:
This can be done with listcontrol controls directlyCodePudding user response:
Create ListCtrl, delete in addition to the List Control all the other controls,A variable m_listctrl,
Then in ListCtrlDlg. CPP BOOL CListCtrlDlg: : OnInitDialog (), the initialization code is added to the
M_listctrl. InsertColumn (0, "student id");//add the column name
Reached m_listctrl. SetColumnWidth (0);//set the column width
M_listctrl. SetExtendedStyle (LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);//set extension format, the entire line selection, grid lines
for(int i=0; i<5; I++)
{
//add item (5), item exactly the same as
}
CodePudding user response:
The use of the MFCGridCtrl http://blog.csdn.net/wilsonke/article/details/9203583CodePudding user response:
Listctrl points in minutesCodePudding user response:
Create ListCtrl, delete in addition to the List Control all the other controls,CodePudding user response:
List Ctrol controls to add and delete rows