Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat5-Mar-09 1:22
Code-o-mat5-Mar-09 1:22 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner7-Aug-09 18:17
Le@rner7-Aug-09 18:17 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat7-Aug-09 21:29
Code-o-mat7-Aug-09 21:29 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner7-Aug-09 21:49
Le@rner7-Aug-09 21:49 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat7-Aug-09 21:59
Code-o-mat7-Aug-09 21:59 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner7-Aug-09 23:04
Le@rner7-Aug-09 23:04 
QuestionProblem sending SMS using EDGE modem Pin
efarook4-Mar-09 22:59
efarook4-Mar-09 22:59 
QuestionHow to override OnOK() and OnESC() in an instance of CDialog? Pin
B_U_A4-Mar-09 22:43
B_U_A4-Mar-09 22:43 
Using VC6++, I created a little dialog based test application with the app wizard.
I have a tab control which shows several tabs. Swapping between the individual tabs works fine.
The content of the tabs consists of dialogs which I have derived from CDialog - hence they have an ESC /CANCEL and OK/ENTER message handler attached.

My problem is that when the focus sits on any of the tabs (i.e. I can see the chid dialog that the tab displays, then when hitting ESC or ENTER, this content of the child window disappears, because obviously the CDialog OnOK() and OnESC() member functions get called.

My beginners knowledge doesn't allow me to dive a bit deeper into the code to override the corresponding member functions (which I think are onOK() ...etc. is that correct?

Could someone explain (and ideally post some lines of code for a beginner), what needs to be done?

Many thanks.
AnswerRe: How to override OnOK() and OnESC() in an instance of CDialog? Pin
Cedric Moonen4-Mar-09 22:47
Cedric Moonen4-Mar-09 22:47 
GeneralRe: How to override OnOK() and OnESC() in an instance of CDialog? Pin
B_U_A4-Mar-09 23:24
B_U_A4-Mar-09 23:24 
GeneralRe: How to override OnOK() and OnESC() in an instance of CDialog? Pin
Hamid_RT4-Mar-09 23:55
Hamid_RT4-Mar-09 23:55 
QuestionHow to receive buffer from a directx based game Pin
kallol kumar4-Mar-09 20:56
kallol kumar4-Mar-09 20:56 
AnswerRe: How to receive buffer from a directx based game [modified] Pin
Code-o-mat4-Mar-09 21:59
Code-o-mat4-Mar-09 21:59 
GeneralRe: How to receive buffer from a directx based game Pin
kallol kumar5-Mar-09 1:15
kallol kumar5-Mar-09 1:15 
GeneralRe: How to receive buffer from a directx based game Pin
Code-o-mat5-Mar-09 1:36
Code-o-mat5-Mar-09 1:36 
QuestionContext Help in dialog Pin
Anu_Bala4-Mar-09 20:14
Anu_Bala4-Mar-09 20:14 
AnswerRe: Context Help in dialog Pin
Hamid_RT4-Mar-09 20:49
Hamid_RT4-Mar-09 20:49 
AnswerRe: Context Help in dialog Pin
SandipG 4-Mar-09 20:56
SandipG 4-Mar-09 20:56 
GeneralRe: Context Help in dialog Pin
Anu_Bala4-Mar-09 21:29
Anu_Bala4-Mar-09 21:29 
QuestionRe: Context Help in dialog Pin
Anu_Bala4-Mar-09 21:58
Anu_Bala4-Mar-09 21:58 
AnswerRe: Context Help in dialog Pin
SandipG 4-Mar-09 22:40
SandipG 4-Mar-09 22:40 
QuestionCWnd getting erased by other windows. Pin
whatever174-Mar-09 19:47
whatever174-Mar-09 19:47 
AnswerRe: CWnd getting erased by other windows. Pin
Cedric Moonen4-Mar-09 20:14
Cedric Moonen4-Mar-09 20:14 
QuestionRe: CWnd getting erased by other windows. Pin
Eytukan4-Mar-09 20:16
Eytukan4-Mar-09 20:16 
AnswerRe: CWnd getting erased by other windows. Pin
Cedric Moonen4-Mar-09 20:20
Cedric Moonen4-Mar-09 20:20 

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.