使用 MFC radio button 時,記得群組第一個的屬性 Group 要設為 True
該群組的 Tab Order 要連續
例:
radio button 1 (Group = True)
radio button 2
radio button 3

radio button 6 (Group = True)
radio button 7

ps.Ctrl+d 可設定Tab Order

然後再用 int value 來紀錄選到哪個 radio button
DDX_Radio( pDX, IDC_RADIO1, m_select_value );

最後要拿 m_select_value 使用前先 call
UpdateData(TRUE);
這樣就OK了!


參考資料
arrow
arrow
    全站熱搜

    JohnDX 發表在 痞客邦 留言(0) 人氣()