怎么在OnInitDialog()设置Check的Text和可见效果
如何在OnInitDialog()设置Check的Text和可见效果
同标题
------解决方案--------------------
GetDlgItem-> SetWindowText()
GetDlgItem-> ShowWindow(SW_SHOW)
------解决方案--------------------
GetDlgItem(IDC_CHECK1)-> SetWindowText( "text ")
GetDlgItem(IDC_CHECK1)-> ShowWindow(SW_SHOW) //SW_SHOW可见 SW_HIDE不可见
------解决方案--------------------
CButton * pButton = (CButton*)GetDlgItem(IDC_RADIO1);
if( NULL != pButton )
{
pButton-> SetWindowText( "标题 ");
pButton-> SetCheck(1);
}
同标题
------解决方案--------------------
GetDlgItem-> SetWindowText()
GetDlgItem-> ShowWindow(SW_SHOW)
------解决方案--------------------
GetDlgItem(IDC_CHECK1)-> SetWindowText( "text ")
GetDlgItem(IDC_CHECK1)-> ShowWindow(SW_SHOW) //SW_SHOW可见 SW_HIDE不可见
------解决方案--------------------
CButton * pButton = (CButton*)GetDlgItem(IDC_RADIO1);
if( NULL != pButton )
{
pButton-> SetWindowText( "标题 ");
pButton-> SetCheck(1);
}