Click here to Skip to main content
15,926,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Problems!!! Pin
Paddy20-Nov-02 6:43
Paddy20-Nov-02 6:43 
GeneralRe: Memory Problems!!! Pin
Nitron20-Nov-02 5:11
Nitron20-Nov-02 5:11 
GeneralRe: Memory Problems!!! Pin
Paddy20-Nov-02 6:44
Paddy20-Nov-02 6:44 
GeneralRe: Memory Problems!!! Pin
Nitron20-Nov-02 6:52
Nitron20-Nov-02 6:52 
GeneralRe: Memory Problems!!! Pin
Paddy20-Nov-02 8:28
Paddy20-Nov-02 8:28 
GeneralRe: Memory Problems!!! Pin
Ravi Bhavnani20-Nov-02 9:23
professionalRavi Bhavnani20-Nov-02 9:23 
GeneralPropertis Window Pin
ivexx20-Nov-02 4:27
sussivexx20-Nov-02 4:27 
GeneralMessage handler function being called multiple times Pin
Mohit Khanna20-Nov-02 3:55
Mohit Khanna20-Nov-02 3:55 
Hi All,

A brief about the prob I am facing. We have a dialog being displayed (has got property pages)... In one particular property page.. we have 2 radio buttons... (other controls not in question)... we display a dialog whenever the user tries to change the selection of the radio control. Say from "radio1" to "radio2"... It's basically a simple Yes/No question messagebox. If the the user selects "yes" the user is allowed to select the other radio button, otherwise not.

"radio1" is selected by default. User changes to radio2. after selection... dialog appears (asking for confirmation). If the user says "yes" then we continue as it is, otherwise we progra-matically restore the first radio controls state (selected=true) by setting m_nFirstRadio=1. this is the variable controlling the state of these two controls.

We are hadling the OnRadioButton() message handler for both of these controls.
Till now it works perfectly.

but when we change the property page to some other at runtime.. I don't know why.. but the message handler for the radioButton is being called (about 18 times). In effect displaying the conformation dialog about 18 times...

Any idea why this is happening??? I am not calling the OnRadioButton message handler manually. One more thing.. this happens only when the user selects "no".. thus we had to restore the state programatically.

Is there any rule as to when to use the radio button's member variable to change the state...

Regards,
Mohit

GeneralRe: Message handler function being called multiple times Pin
Alois Kraus20-Nov-02 4:17
Alois Kraus20-Nov-02 4:17 
GeneralRe: Message handler function being called multiple times Pin
Mohit Khanna20-Nov-02 18:29
Mohit Khanna20-Nov-02 18:29 
GeneralShellExecute w/ unknown filename parameter Pin
kubert20-Nov-02 3:25
kubert20-Nov-02 3:25 
GeneralRe: ShellExecute w/ unknown filename parameter Pin
Simon.W20-Nov-02 3:38
Simon.W20-Nov-02 3:38 
GeneralGetting float by reference- low performance Pin
Member 887120-Nov-02 3:02
Member 887120-Nov-02 3:02 
GeneralRe: Getting float by reference- low performance Pin
Simon.W20-Nov-02 3:17
Simon.W20-Nov-02 3:17 
GeneralRe: Getting float by reference- low performance Pin
User 988520-Nov-02 8:56
User 988520-Nov-02 8:56 
GeneralRe: Getting float by reference- low performance Pin
User 988520-Nov-02 8:57
User 988520-Nov-02 8:57 
Generalaccessing view class object from another class Pin
B4u20-Nov-02 2:04
B4u20-Nov-02 2:04 
GeneralRe: accessing view class object from another class Pin
KaЯl20-Nov-02 2:19
KaЯl20-Nov-02 2:19 
GeneralRe: accessing view class object from another class Pin
KarstenK20-Nov-02 2:47
mveKarstenK20-Nov-02 2:47 
GeneralRe: accessing view class object from another class Pin
Simon.W20-Nov-02 3:11
Simon.W20-Nov-02 3:11 
GeneralRe: accessing view class object from another class Pin
dan o20-Nov-02 5:50
dan o20-Nov-02 5:50 
GeneralRe: accessing view class object from another class Pin
B4u20-Nov-02 20:23
B4u20-Nov-02 20:23 
GeneralIncrease resizing border width.... Pin
Neha20-Nov-02 1:43
Neha20-Nov-02 1:43 
GeneralRe: Increase resizing border width.... Pin
RuiSantiago20-Nov-02 1:50
RuiSantiago20-Nov-02 1:50 
GeneralRe: Increase resizing border width.... Pin
Paul M Watt20-Nov-02 6:03
mentorPaul M Watt20-Nov-02 6:03 

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.