Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ORACLE Commit problem--- Error 8197 Pin
megha_gharote8-May-08 23:19
megha_gharote8-May-08 23:19 
AnswerRe: ORACLE Commit problem--- Error 8197 Pin
Rajesh R Subramanian8-May-08 23:32
professionalRajesh R Subramanian8-May-08 23:32 
QuestionHow to invoke application/service on another computer Pin
AnhKhoi8-May-08 22:48
AnhKhoi8-May-08 22:48 
AnswerRe: How to invoke application/service on another computer Pin
toxcct8-May-08 23:18
toxcct8-May-08 23:18 
GeneralRe: How to invoke application/service on another computer Pin
AnhKhoi9-May-08 0:31
AnhKhoi9-May-08 0:31 
GeneralRe: How to invoke application/service on another computer Pin
toxcct9-May-08 1:01
toxcct9-May-08 1:01 
QuestionDialog application Pin
tom groezer8-May-08 22:28
tom groezer8-May-08 22:28 
AnswerRe: Dialog application Pin
Matthew Faithfull8-May-08 22:42
Matthew Faithfull8-May-08 22:42 
Hmm, have forgotten how to do they escape key bit, there's a function in one of the MFC classes your Dialog is deriving from that turns Esc into a WM_CLOSE, you need to override that or prevent it being called, a PreTranslateMessage override might be able to do it.
When it comes to closing the Dialog your best bet is probably to use a timer, MFCs timers are fine and when it goes off use PostMessage to have the dialog send itself a WM_CLOSE. Don't use SendMessage or things may go horribly wrong when you return to run code in a deleted dialog. Smile | :)
If the dialog closing is conditional then set your timer to a short period, like a 10/th of a second and check the condition. If it's not met just set the timer again.

"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

AnswerRe: Dialog application Pin
CPallini8-May-08 22:43
mveCPallini8-May-08 22:43 
AnswerRe: Dialog application Pin
toxcct8-May-08 23:13
toxcct8-May-08 23:13 
GeneralRe: Dialog application Pin
tom groezer9-May-08 2:34
tom groezer9-May-08 2:34 
GeneralRe: Dialog application Pin
toxcct9-May-08 3:03
toxcct9-May-08 3:03 
QuestionTo find MMC's version on a system Pin
Mushtaque Nizamani8-May-08 22:04
Mushtaque Nizamani8-May-08 22:04 
AnswerRe: To find MMC's version on a system Pin
Hamid_RT9-May-08 0:25
Hamid_RT9-May-08 0:25 
QuestionVirtual Constructor Pin
Anandi.VC8-May-08 21:49
Anandi.VC8-May-08 21:49 
AnswerRe: Virtual Constructor Pin
Rajkumar R8-May-08 21:53
Rajkumar R8-May-08 21:53 
AnswerRe: Virtual Constructor Pin
fefe.wyx8-May-08 21:54
fefe.wyx8-May-08 21:54 
AnswerRe: Virtual Constructor Pin
toxcct8-May-08 21:59
toxcct8-May-08 21:59 
AnswerRe: Virtual Constructor Pin
jhwurmbach9-May-08 3:05
jhwurmbach9-May-08 3:05 
QuestionDefaultIcon Pin
john56328-May-08 21:14
john56328-May-08 21:14 
Questionxp home editon problem Pin
followait8-May-08 20:42
followait8-May-08 20:42 
AnswerRe: xp home editon problem Pin
Rajkumar R8-May-08 20:51
Rajkumar R8-May-08 20:51 
GeneralRe: xp home editon problem Pin
followait8-May-08 23:02
followait8-May-08 23:02 
GeneralRe: xp home editon problem Pin
Rajkumar R8-May-08 23:10
Rajkumar R8-May-08 23:10 
GeneralRe: xp home editon problem Pin
followait9-May-08 7:35
followait9-May-08 7:35 

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.