Click here to Skip to main content
15,881,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can get a disk number of a logical drive? Pin
André Kraak10-Nov-12 0:18
André Kraak10-Nov-12 0:18 
QuestionInfix to Postfix Converter Pin
ShayanTanwir9-Nov-12 17:52
ShayanTanwir9-Nov-12 17:52 
AnswerRe: Infix to Postfix Converter Pin
Richard MacCutchan9-Nov-12 23:27
mveRichard MacCutchan9-Nov-12 23:27 
AnswerRe: Infix to Postfix Converter Pin
David Crow11-Nov-12 15:59
David Crow11-Nov-12 15:59 
QuestionHow to stop typing in CDateTimeCtrl in MFC Pin
rahul.kulshreshtha7-Nov-12 16:47
rahul.kulshreshtha7-Nov-12 16:47 
AnswerRe: How to stop typing in CDateTimeCtrl in MFC Pin
Jochen Arndt7-Nov-12 23:32
professionalJochen Arndt7-Nov-12 23:32 
GeneralRe: How to stop typing in CDateTimeCtrl in MFC Pin
rahul.kulshreshtha8-Nov-12 5:52
rahul.kulshreshtha8-Nov-12 5:52 
GeneralRe: How to stop typing in CDateTimeCtrl in MFC Pin
Jochen Arndt8-Nov-12 6:32
professionalJochen Arndt8-Nov-12 6:32 
You are using MFC, so you don't need to handle PreTranslateMessage(). Just use the wizard to derive a class, use the message properties to add the WM_CHAR handler, and comment the line calling CDateTimeCtrl::OnChar(). Done with a few mouse clicks. All you need to type in using the keyboard is the name of the drived class, the comment chars, and replacing the CDateTimeCtrl by your class name in your code.

The edit control of CDateTimeCtrl is not accessible. So it can't be done in the dialog. Even when it would be possible: It is always better to perform such things in the control rather than in the dialog. So it must be done only once and not within every dialog that uses such a control.
Question[MFC] How to save three ini files as zip file? Pin
yu-jian7-Nov-12 5:20
yu-jian7-Nov-12 5:20 
AnswerRe: [MFC] How to save three ini files as zip file? Pin
jeron17-Nov-12 6:17
jeron17-Nov-12 6:17 
AnswerRe: [MFC] How to save three ini files as zip file? Pin
Thomas Daniels7-Nov-12 7:35
mentorThomas Daniels7-Nov-12 7:35 
QuestionWhy new Image failed? Pin
yu-jian7-Nov-12 4:06
yu-jian7-Nov-12 4:06 
AnswerRe: Why new Image failed? Pin
chaau7-Nov-12 12:12
chaau7-Nov-12 12:12 
AnswerRe: Why new Image failed? Pin
Santhosh G_7-Nov-12 12:59
Santhosh G_7-Nov-12 12:59 
GeneralRe: Why new Image failed? Pin
yu-jian15-Nov-12 16:41
yu-jian15-Nov-12 16:41 
QuestionDialogBox fail in XP Pin
William Engberts7-Nov-12 3:32
William Engberts7-Nov-12 3:32 
QuestionRe: DialogBox fail in XP Pin
CPallini7-Nov-12 10:06
mveCPallini7-Nov-12 10:06 
AnswerRe: DialogBox fail in XP Pin
chaau7-Nov-12 12:20
chaau7-Nov-12 12:20 
GeneralRe: DialogBox fail in XP Pin
William Engberts7-Nov-12 22:36
William Engberts7-Nov-12 22:36 
SuggestionRe: DialogBox fail in XP Pin
chaau7-Nov-12 22:59
chaau7-Nov-12 22:59 
GeneralRe: DialogBox fail in XP Pin
William Engberts7-Nov-12 23:30
William Engberts7-Nov-12 23:30 
QuestionRe: DialogBox fail in XP Pin
David Crow8-Nov-12 4:21
David Crow8-Nov-12 4:21 
AnswerRe: DialogBox fail in XP Pin
William Engberts8-Nov-12 5:00
William Engberts8-Nov-12 5:00 
QuestionAdo problem Pin
luckyty6-Nov-12 22:27
luckyty6-Nov-12 22:27 
Questionhow I can allow user draw curve using mouse Pin
Member 94819416-Nov-12 7:06
Member 94819416-Nov-12 7:06 

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.