Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AfxGetResourceHandle() Fails Pin
Ancient Dragon31-Dec-02 1:50
Ancient Dragon31-Dec-02 1:50 
GeneralRe: AfxGetResourceHandle() Fails Pin
Swinefeaster31-Dec-02 12:12
Swinefeaster31-Dec-02 12:12 
GeneralEdit control: only works once Pin
jimNLX30-Dec-02 11:26
jimNLX30-Dec-02 11:26 
GeneralRe: Edit control: only works once Pin
Alvaro Mendez30-Dec-02 11:46
Alvaro Mendez30-Dec-02 11:46 
GeneralRe: Edit control: only works once Pin
jimNLX31-Dec-02 5:40
jimNLX31-Dec-02 5:40 
GeneralRe: Edit control: only works once Pin
Alvaro Mendez31-Dec-02 6:32
Alvaro Mendez31-Dec-02 6:32 
GeneralRe: Edit control: only works once Pin
jimNLX31-Dec-02 7:34
jimNLX31-Dec-02 7:34 
GeneralRe: Edit control: only works once Pin
Alvaro Mendez6-Jan-03 17:57
Alvaro Mendez6-Jan-03 17:57 
Sorry I haven't back to you on this. From the code it appears as though the culprit is your "calleddialog" variable. When DoModal returns IDOK, it gets reset to false, but when it returns IDCANCEL, it remains true and your code no longer gets executed.

Remember that DoModal does not return until the user closes the dialog, so you shouldn't need to worry about this code being executed again while the dialog is up. In other words, get rid of the "calleddialog" flag. If this code can indeed be called again while the dialog is up, the most likely reason is that the dialog does not have a proper parent window. Construct it like this:

CNumberEntry GetNumDlg(this);

This tells it to use the current dialog as the parent window thereby disabling it when it comes up.

Regards,
Alvaro




Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
GeneralRe: Edit control: only works once Pin
Anonymous7-Jan-03 10:30
Anonymous7-Jan-03 10:30 
GeneralOnIdle function eats up 100% of the processor Pin
Florin Ochiana30-Dec-02 10:52
Florin Ochiana30-Dec-02 10:52 
GeneralRe: OnIdle function eats up 100% of the processor Pin
pba_30-Dec-02 11:08
pba_30-Dec-02 11:08 
GeneralRe: OnIdle function eats up 100% of the processor Pin
Paul Oss30-Dec-02 19:35
Paul Oss30-Dec-02 19:35 
GeneralRe: OnIdle function eats up 100% of the processor Pin
Anonymous31-Dec-02 1:35
Anonymous31-Dec-02 1:35 
Generalsemaphores and threads Pin
amica30-Dec-02 10:48
amica30-Dec-02 10:48 
GeneralRe: semaphores and threads Pin
pba_30-Dec-02 11:17
pba_30-Dec-02 11:17 
GeneralName Pipe Error Pin
Spiros30-Dec-02 10:08
Spiros30-Dec-02 10:08 
GeneralCButton text at run time Pin
jimNLX30-Dec-02 9:07
jimNLX30-Dec-02 9:07 
GeneralRe: CButton text at run time Pin
jimNLX30-Dec-02 9:35
jimNLX30-Dec-02 9:35 
GeneralRe: CButton text at run time Pin
Thomas Lau30-Dec-02 18:19
Thomas Lau30-Dec-02 18:19 
QuestionHow do I get process name from handle? Pin
Neil scsn30-Dec-02 8:30
Neil scsn30-Dec-02 8:30 
AnswerRe: How do I get process name from handle? Pin
pba_30-Dec-02 11:03
pba_30-Dec-02 11:03 
GeneralIs this possible.... Pin
Member 9630-Dec-02 7:56
Member 9630-Dec-02 7:56 
GeneralRe: Is this possible.... Pin
Anders Molin30-Dec-02 9:44
professionalAnders Molin30-Dec-02 9:44 
GeneralRe: Is this possible.... Pin
Member 9630-Dec-02 11:05
Member 9630-Dec-02 11:05 
GeneralRe: Is this possible.... Pin
peter271330-Dec-02 12:43
peter271330-Dec-02 12:43 

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.