Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CheckRadioButton makes recursive calls Pin
elephantstar7-Jul-04 9:41
elephantstar7-Jul-04 9:41 
GeneralRe: CheckRadioButton makes recursive calls Pin
David Crow7-Jul-04 10:01
David Crow7-Jul-04 10:01 
GeneralRe: CheckRadioButton makes recursive calls Pin
elephantstar7-Jul-04 11:55
elephantstar7-Jul-04 11:55 
GeneralRe: CheckRadioButton makes recursive calls Pin
Blake Miller7-Jul-04 5:11
Blake Miller7-Jul-04 5:11 
GeneralRe: CheckRadioButton makes recursive calls Pin
elephantstar7-Jul-04 9:48
elephantstar7-Jul-04 9:48 
GeneralRe: CheckRadioButton makes recursive calls Pin
Blake Miller7-Jul-04 11:38
Blake Miller7-Jul-04 11:38 
GeneralRe: CheckRadioButton makes recursive calls Pin
elephantstar7-Jul-04 12:40
elephantstar7-Jul-04 12:40 
GeneralRe: CheckRadioButton makes recursive calls Pin
David Crow8-Jul-04 2:41
David Crow8-Jul-04 2:41 
elephantstar wrote:
So then what was wrong with my initial code?

I'm not sure, but this code snippet works for me:

void CT9Dlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CT9Dlg)
	DDX_Control(pDX, IDC_RADIO1, m_btnRadio1);
	DDX_Control(pDX, IDC_RADIO2, m_btnRadio2);
	DDX_Control(pDX, IDC_RADIO3, m_btnRadio3);
	//}}AFX_DATA_MAP
}
 
BEGIN_MESSAGE_MAP(CT9Dlg, CDialog)
	//{{AFX_MSG_MAP(CT9Dlg)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()
 
BOOL CT9Dlg::OnInitDialog()
{
    CDialog::OnInitDialog();
 
    m_btnRadio1.SetCheck(BST_CHECKED);	// default
 
    return TRUE;
}
 
void CT9Dlg::OnRadio1() 
{
}
 
void CT9Dlg::OnRadio2() 
{
    CMyDialog dlg;
 
    if (IDCANCEL == dlg.DoModal())
    {
        m_btnRadio1.SetCheck(BST_CHECKED);	
        m_btnRadio2.SetCheck(BST_UNCHECKED);	
    }
}
 
void CT9Dlg::OnRadio3() 
{	
}



"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


GeneralRe: CheckRadioButton makes recursive calls Pin
elephantstar8-Jul-04 11:14
elephantstar8-Jul-04 11:14 
GeneralRe: CheckRadioButton makes recursive calls Pin
David Crow9-Jul-04 4:50
David Crow9-Jul-04 4:50 
GeneralCalling all people, I need your input. Pin
mayanxn036-Jul-04 13:17
mayanxn036-Jul-04 13:17 
GeneralRe: Calling all people, I need your input. Pin
David Crow7-Jul-04 3:57
David Crow7-Jul-04 3:57 
GeneralInsertMenuItem makes menu display with wrong width Pin
siggapet6-Jul-04 13:03
siggapet6-Jul-04 13:03 
GeneralTray icon tooltip Pin
ace//236-Jul-04 10:06
ace//236-Jul-04 10:06 
GeneralRe: Tray icon tooltip Pin
Ravi Bhavnani6-Jul-04 10:44
professionalRavi Bhavnani6-Jul-04 10:44 
GeneralRe: Tray icon tooltip Pin
ThatsAlok7-Jul-04 0:18
ThatsAlok7-Jul-04 0:18 
QuestionWhat's the best leak finder tool for VC 6? Pin
CherezZaboro6-Jul-04 9:46
CherezZaboro6-Jul-04 9:46 
AnswerRe: What's the best leak finder tool for VC 6? Pin
Johan Rosengren6-Jul-04 10:44
Johan Rosengren6-Jul-04 10:44 
GeneralRe: What's the best leak finder tool for VC 6? Pin
CherezZaboro6-Jul-04 11:40
CherezZaboro6-Jul-04 11:40 
GeneralRe: What's the best leak finder tool for VC 6? Pin
Johan Rosengren6-Jul-04 21:05
Johan Rosengren6-Jul-04 21:05 
GeneralRe: What's the best leak finder tool for VC 6? Pin
CherezZaboro7-Jul-04 3:32
CherezZaboro7-Jul-04 3:32 
GeneralRe: What's the best leak finder tool for VC 6? Pin
Johan Rosengren7-Jul-04 3:52
Johan Rosengren7-Jul-04 3:52 
GeneralRe: What's the best leak finder tool for VC 6? Pin
CherezZaboro7-Jul-04 4:21
CherezZaboro7-Jul-04 4:21 
GeneralRe: What's the best leak finder tool for VC 6? Pin
Johan Rosengren7-Jul-04 4:53
Johan Rosengren7-Jul-04 4:53 
Generalsubclassing in win32 Pin
Anonymous6-Jul-04 9:40
Anonymous6-Jul-04 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.