Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple as Pie! Pin
Prakash Nadar18-Jan-06 18:06
Prakash Nadar18-Jan-06 18:06 
GeneralRe: Simple as Pie! Pin
Prakash Nadar18-Jan-06 18:05
Prakash Nadar18-Jan-06 18:05 
GeneralRe: Simple as Pie! Pin
Stephen Hewitt18-Jan-06 18:22
Stephen Hewitt18-Jan-06 18:22 
GeneralRe: Simple as Pie! Pin
Rajesh R Subramanian18-Jan-06 23:34
professionalRajesh R Subramanian18-Jan-06 23:34 
GeneralRe: Simple as Pie! Pin
Prakash Nadar17-Jan-06 22:15
Prakash Nadar17-Jan-06 22:15 
AnswerRe: Modal dialog - Close - ESC Pin
Michael Dunn17-Jan-06 21:33
sitebuilderMichael Dunn17-Jan-06 21:33 
GeneralRe: Modal dialog - Close - ESC Pin
Rajesh R Subramanian18-Jan-06 17:02
professionalRajesh R Subramanian18-Jan-06 17:02 
GeneralRe: Modal dialog - Close - ESC Pin
Michael Dunn19-Jan-06 22:22
sitebuilderMichael Dunn19-Jan-06 22:22 
In general, the higher-up the call stack that you can make a change, the better. Doing it on OnCancel() is as high up as you can go. The reasoning being, the higher-up layers are less likely to change between versions of MFC (thus breaking your code), and higher-up changes are easier for others to maintain.
PreTranslateMessage() deals with the raw messages, you may perhaps run into weird cases regarding key states, shift states, and so on.

--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
GeneralRe: Modal dialog - Close - ESC Pin
Prakash Nadar22-Jan-06 17:39
Prakash Nadar22-Jan-06 17:39 
GeneralRe: Modal dialog - Close - ESC Pin
Michael Dunn22-Jan-06 21:11
sitebuilderMichael Dunn22-Jan-06 21:11 
GeneralRe: Modal dialog - Close - ESC Pin
Rajesh R Subramanian24-Jan-06 20:01
professionalRajesh R Subramanian24-Jan-06 20:01 
QuestionUnions Vs Struct. Pin
Prakash Nadar17-Jan-06 18:00
Prakash Nadar17-Jan-06 18:00 
AnswerRe: Unions Vs Struct. Pin
ky_rerun17-Jan-06 18:04
ky_rerun17-Jan-06 18:04 
GeneralRe: Unions Vs Struct. Pin
Prakash Nadar17-Jan-06 18:20
Prakash Nadar17-Jan-06 18:20 
GeneralRe: Unions Vs Struct. Pin
Prakash Nadar17-Jan-06 22:13
Prakash Nadar17-Jan-06 22:13 
AnswerRe: Unions Vs Struct. Pin
vallikumar17-Jan-06 18:33
vallikumar17-Jan-06 18:33 
GeneralRe: Unions Vs Struct. Pin
cmk17-Jan-06 19:22
cmk17-Jan-06 19:22 
AnswerRe: Unions Vs Struct. Pin
Stephen Hewitt17-Jan-06 18:37
Stephen Hewitt17-Jan-06 18:37 
GeneralRe: Unions Vs Struct. Pin
Owner drawn17-Jan-06 18:45
Owner drawn17-Jan-06 18:45 
GeneralRe: Unions Vs Struct. Pin
Stephen Hewitt17-Jan-06 18:53
Stephen Hewitt17-Jan-06 18:53 
GeneralRe: Unions Vs Struct. Pin
Owner drawn17-Jan-06 18:58
Owner drawn17-Jan-06 18:58 
GeneralRe: Unions Vs Struct. Pin
QuickDeveloper17-Jan-06 19:02
QuickDeveloper17-Jan-06 19:02 
Questionhow to use CDC::GetCharWidth()! please give me a instance! Pin
ebinaini17-Jan-06 15:29
ebinaini17-Jan-06 15:29 
AnswerRe: how to use CDC::GetCharWidth()! please give me a instance! Pin
Stephen Hewitt17-Jan-06 16:25
Stephen Hewitt17-Jan-06 16:25 
QuestionCInternetSession could not run in a message loop? Pin
rushing17-Jan-06 15:09
rushing17-Jan-06 15:09 

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.