![]() The three parameters passed in when calling the constructor are item name, default options and description text.Īlso, you could add drop-down menu: CMFCPropertyGridProperty* pProp2 = new CMFCPropertyGridProperty( PProp2->AllowEdit(FALSE) //Editing of options is not allowed M_propertyGrid.GetHeaderCtrl().SetItem(0, new HDITEM(item)) Īdd the following code in OnInitDialog() CMFCPropertyGridProperty* pProp2 = new CMFCPropertyGridProperty( Mark Modified Properties indicates whether to highlight the changes.Īdd the following code in OnInitDialog() HDITEM item Change the setting of Notify to True.ĭescription Rows Count refers to the number of rows in the description section below.Įnable Description Area indicates whether to enable the following description function.Įnable Header indicates whether to start the header. Then change the ID for the control to IDC_MFCPROPERTYGRID_TEST, and use Add Varible to add a variable m_propertyGrid to the control. ![]() 1.Create a dialog-based MFC project, drag a CMFCPropertyGridCtrl into it, and adjust the size.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |