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

C / C++ / MFC

 
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 
GeneralRe: CheckRadioButton makes recursive calls Pin
elephantstar8-Jul-04 11:14
elephantstar8-Jul-04 11:14 
I have the exact same setup, but the button in its event handler function does not like to uncheck itself (ie. m_btnRadio2.SetCheck(BST_UNCHECKED);) This is what causes the recursion and it recursivelly calls OnRadio2() about four times. I tried to test this on OnRadio1() by doing the following:

void CT9Dlg:OnRadio1()
{
MessageBox("Hello");
m_btnRadio1.SetCheck(BST_UNCHECKED); //recursive calls
m_btnRadio2.SetCheck(BST_CHECKED);
m_btnRadio3.SetCheck(BST_UNCHECKED);
}

OnRadio1() is repeately called because of that line of code. I just don't understand it. Should the group properties for each radio button be checked or just the first in the group? This bug is really bugging me.....
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 
GeneralRe: subclassing in win32 Pin
palbano6-Jul-04 9:54
palbano6-Jul-04 9:54 

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.