c++windows mobile 2012.7.19心得小结

1、combo box中的OnCbnSelchange()事件处理过程是实习当combo box内容改变时,获取其内容。 GetWindowTextW()获取内容不会改变,,,必须使用GetLBText(m_Mode.GetCurSel(),str) 2、代码更改GroupBox的标题。 第一部将GroupBox的ID修改,不能为IDD_STATIC 添加如下代码: CButton *prButton=(CButton*)GetDlgItem(IDC_STATIC); prButton->SetWindowText(_T("ww")); 3、设置Date Time Picker时间为系统时间 COleDateTime PlayStart; PlayStart=COleDateTime::GetCurrentTime(); m_Date.SetFormat(_T("yyy-MM-dd")); m_Date.SetTime(PlayStart);
原文地址:https://www.cnblogs.com/tangseng/p/2599910.html