主题 |
1. s |
Caption属性 |
CheckBox |
CheckDlgButton |
BOOL CheckDlgButton( HWND hDlg, // int nIDButton, // button UINT uCheck // check ); |
样式
ID |
Value |
Meaning::CheckDlgButton |
1 |
BST_CHECKED |
Sets the button state to checked. |
2 |
BST_INDETERMINATE |
Sets the button state to grayed |
3 |
BST_UNCHECKED |
Sets the button state to cleared |
CheckBox |
int nState=m_chk1.GetCheck(); if(nState==BST_CHECKED) { MessageBox("ABC"); } |
看不懂:注意实例 |
CString szHabitList, szHabit; szHabitList = ""; for(int i=IDC_FOOTBALL; i<IDC_PINGPONG+1; i++) { CButton *pBtn = static_cast<CButton *>(GetDlgItem(i)); if { if { pBtn->GetWindowText(szHabit); szHabitList += szHabit + "\r\n"; } } } MessageBox(szHabitList, "你的爱好"); |
C++ CheckBox_Porerty,布布扣,bubuko.com
时间: 2024-10-19 18:59:44