随笔分类 - MFC控件
摘要:创建CListBox对象 CListBox m_ListBox;关联控件 ,同时注意行数从 0 开始计算1、向控件中添加内容 int AddString(LPCTSTR lpszItem); 如:m_ListBox.AddString(_T("123"));2、指定插入位置 int Inse...
阅读全文
摘要:CIPAddressCtrl m_ipCtrl;1、获取控件IP值int GetAddress(byte& byteFirst, byte& byteTwo, byte& byteThree, byte& byteFour);int GetAddress(DWORD& dwAddress);byte...
阅读全文
摘要:1.CFileDialog 的 应用 CFileDialog::CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREA
阅读全文
摘要:CMFCListCtrl实现的功能:比较特别的就是通过CImage来扩展每行的高度 CMFCListCtrl m_lisTestResult;1、插入列(创建表格) m_lisTestResult.InsertColumn(0, _T("序号"), LVCFMT_CENTER, 50);2、填充...
阅读全文

浙公网安备 33010602011771号