Click here to Skip to main content
15,903,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UI thread basics.. Pin
Joaquín M López Muñoz13-Nov-02 10:13
Joaquín M López Muñoz13-Nov-02 10:13 
GeneralRe: UI thread basics.. Pin
RobJones13-Nov-02 10:23
RobJones13-Nov-02 10:23 
GeneralRe: UI thread basics.. Pin
Joaquín M López Muñoz13-Nov-02 10:27
Joaquín M López Muñoz13-Nov-02 10:27 
GeneralRe: UI thread basics.. Pin
RobJones13-Nov-02 10:28
RobJones13-Nov-02 10:28 
GeneralRe: UI thread basics.. Pin
Joaquín M López Muñoz13-Nov-02 10:46
Joaquín M López Muñoz13-Nov-02 10:46 
QuestionHow to open a URL on a different virtual desktop? Pin
Larry Antram13-Nov-02 9:43
Larry Antram13-Nov-02 9:43 
AnswerRe: How to open a URL on a different virtual desktop? Pin
RobJones13-Nov-02 9:58
RobJones13-Nov-02 9:58 
Generalradio button handlers: recursion when using arrow key to switch buttons Pin
David Klotz13-Nov-02 9:13
David Klotz13-Nov-02 9:13 
Hi all.

I'm working on a large project that does two things I wouldn't do, it if were up to me:

1 -- Radio buttons remain enabled even when conditions exist that prevent the selection of the corresponding option

2 -- When users select an enabled radio button and the corresponding option is not available, a message box is genereated from within the radio button handler, informing the user that he/she cannot make that choice. After this, selection is returned to the previous radio button.

Although non-standard, this works fine when the user CLICKS the radio button in question. If, however, the user uses an arrow key to move from an adjacent radio button, the action sets off a recursive loop. Strangely, this loop repeats a limited number of times (14, in the case I'm working on).

Using breakpoints to step through the code, I can see that the flow goes directly from the dismissal of the message box to the top of the radio button handler, without executing the rest of the handler code. The recursion has nothing to do with the code that re-selects the previous radio button.

Again -- this happens ONLY when using an arrow key to select the radio button. It does NOT happen with a mouse click on the radio button.

Any ideas on what is causing this, or how I can prevent it?

Thanks!

David
GeneralRe: radio button handlers: recursion when using arrow key to switch buttons Pin
Alvaro Mendez13-Nov-02 9:51
Alvaro Mendez13-Nov-02 9:51 
GeneralRe: radio button handlers: recursion when using arrow key to switch buttons Pin
Alvaro Mendez13-Nov-02 10:06
Alvaro Mendez13-Nov-02 10:06 
GeneralRe: radio button handlers: recursion when using arrow key to switch buttons Pin
David Klotz13-Nov-02 11:58
David Klotz13-Nov-02 11:58 
GeneralDynamically resizing a static control Pin
Anonymous13-Nov-02 7:38
Anonymous13-Nov-02 7:38 
GeneralRe: Dynamically resizing a static control Pin
Ravi Bhavnani13-Nov-02 8:11
professionalRavi Bhavnani13-Nov-02 8:11 
GeneralToo many property pages. Pin
DanYELL13-Nov-02 7:21
DanYELL13-Nov-02 7:21 
GeneralRe: Too many property pages. Pin
Daniel Turini13-Nov-02 7:51
Daniel Turini13-Nov-02 7:51 
GeneralRe: Too many property pages. Pin
Ravi Bhavnani13-Nov-02 8:02
professionalRavi Bhavnani13-Nov-02 8:02 
GeneralRe: Too many property pages. Pin
Michael Dunn13-Nov-02 15:48
sitebuilderMichael Dunn13-Nov-02 15:48 
Generalsorting problem Pin
wong190713-Nov-02 7:19
wong190713-Nov-02 7:19 
GeneralRe: sorting problem Pin
Paul M Watt13-Nov-02 8:18
mentorPaul M Watt13-Nov-02 8:18 
GeneralRe: sorting problem Pin
Christian Graus13-Nov-02 10:42
protectorChristian Graus13-Nov-02 10:42 
QuestionRambling ...Draw now, or later with Invalidate ? Pin
Maximilien13-Nov-02 7:08
Maximilien13-Nov-02 7:08 
AnswerRe: Rambling ...Draw now, or later with Invalidate ? Pin
Ravi Bhavnani13-Nov-02 7:12
professionalRavi Bhavnani13-Nov-02 7:12 
GeneralLib files Pin
Anonymous13-Nov-02 6:52
Anonymous13-Nov-02 6:52 
GeneralRe: Lib files Pin
Chris Losinger13-Nov-02 6:59
professionalChris Losinger13-Nov-02 6:59 
GeneralRe: Lib files Pin
Hugo Hallman13-Nov-02 7:18
Hugo Hallman13-Nov-02 7:18 

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.