在对话框上加了二个控件,怎么使程序运行的时候,就选中了第一个。

解决方案 »

  1.   

    void SetCheck( int nCheck );ParametersnCheckSpecifies the check state. This parameter can be one of the following:Value Meaning 
    0 Set the button state to unchecked. 
    1 Set the button state to checked. 
    2 Set the button state to indeterminate. This value can be used only if the button has the BS_3STATE or BS_AUTO3STATE style. 
    ResSets or resets the check state of a radio button or check box. This member function has no effect on a pushbutton.
      

  2.   

    我在ClassWizard中IDC_RADIO1   int m_nRadio
    再该怎么搞,我手头没有书可查,也没有msdn啊。指点一下。