Click here to Skip to main content
16,008,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHOW: same menu - diffrent views Pin
JabraJabra9-Jul-04 1:23
JabraJabra9-Jul-04 1:23 
GeneralRe: HOW: same menu - diffrent views Pin
BlackDice9-Jul-04 6:18
BlackDice9-Jul-04 6:18 
GeneralDialog Disappear on pressing Escape key Pin
Zeeshan Bilal9-Jul-04 0:53
Zeeshan Bilal9-Jul-04 0:53 
GeneralRe: Dialog Disappear on pressing Escape key Pin
Johan Rosengren9-Jul-04 1:00
Johan Rosengren9-Jul-04 1:00 
GeneralRe: Dialog Disappear on pressing Escape key Pin
Zeeshan Bilal9-Jul-04 1:24
Zeeshan Bilal9-Jul-04 1:24 
Generali works But Now a Cross (close) Button in System Menu Not Works Pin
Zeeshan Bilal9-Jul-04 1:54
Zeeshan Bilal9-Jul-04 1:54 
GeneralRe: i works But Now a Cross (close) Button in System Menu Not Works Pin
Johan Rosengren9-Jul-04 4:01
Johan Rosengren9-Jul-04 4:01 
GeneralRe: i works But Now a Cross (close) Button in System Menu Not Works Pin
PJ Arends10-Jul-04 12:44
professionalPJ Arends10-Jul-04 12:44 
To catch enter key, override OnOK() and do not call CDialog::OnOK()

To catch esc key, override OnCancel() and do not call CDialog::OnCancel()

To have the close [x] button work when you override OnCancel() you have to override OnClose(). In the override call CDialog::OnCancel(). The default behaviour of OnClose() is to call your overridden OnCancel() which you have told to do nothing.

Do not override PreTranslateMessage(). That is just the lazyman's way of hacking things together.








"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
GeneralRe: Dialog Disappear on pressing Escape key Pin
Anonymous9-Jul-04 1:24
Anonymous9-Jul-04 1:24 
GeneralRe: Dialog Disappear on pressing Escape key Pin
Antony M Kancidrowski9-Jul-04 2:43
Antony M Kancidrowski9-Jul-04 2:43 
GeneralNT to XP upgrade Pin
ganesan balachandar9-Jul-04 0:09
ganesan balachandar9-Jul-04 0:09 
GeneralRe: NT to XP upgrade Pin
Antony M Kancidrowski9-Jul-04 0:54
Antony M Kancidrowski9-Jul-04 0:54 
Generalstructures Pin
Anonymous8-Jul-04 23:38
Anonymous8-Jul-04 23:38 
GeneralRe: structures:::accessing structure of arrays through a class Pin
Anonymous9-Jul-04 0:49
Anonymous9-Jul-04 0:49 
GeneralRe: structures:::accessing structure of arrays through a class Pin
Maximilien9-Jul-04 0:56
Maximilien9-Jul-04 0:56 
GeneralRe: structures:::accessing structure of arrays through a class Pin
Johan Rosengren9-Jul-04 1:03
Johan Rosengren9-Jul-04 1:03 
GeneralRe: structures [modified] Pin
Antony M Kancidrowski9-Jul-04 1:12
Antony M Kancidrowski9-Jul-04 1:12 
GeneralRe: structures [modified] Pin
Anonymous9-Jul-04 1:21
Anonymous9-Jul-04 1:21 
GeneralRe: structures [modified] Pin
Maximilien9-Jul-04 1:28
Maximilien9-Jul-04 1:28 
GeneralRe: structures [modified] Pin
Antony M Kancidrowski9-Jul-04 2:28
Antony M Kancidrowski9-Jul-04 2:28 
Generalcrystal reports alternatives Pin
Irish_GUI8-Jul-04 23:29
Irish_GUI8-Jul-04 23:29 
GeneralRe: crystal reports alternatives Pin
Antony M Kancidrowski9-Jul-04 6:02
Antony M Kancidrowski9-Jul-04 6:02 
Generaldiscussion point: pointers, memory allocations Pin
V.8-Jul-04 22:31
professionalV.8-Jul-04 22:31 
GeneralRe: discussion point: pointers, memory allocations Pin
Johan Rosengren9-Jul-04 1:07
Johan Rosengren9-Jul-04 1:07 
GeneralRe: discussion point: pointers, memory allocations Pin
palbano9-Jul-04 5:19
palbano9-Jul-04 5:19 

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.