Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTFTP and RS232 Communications Pin
SanShou14-Aug-02 5:54
SanShou14-Aug-02 5:54 
GeneralRe: TFTP and RS232 Communications Pin
Stuart Dootson14-Aug-02 20:57
professionalStuart Dootson14-Aug-02 20:57 
GeneralContext menu in CHtmlView question. Pin
Michael Liu14-Aug-02 5:37
Michael Liu14-Aug-02 5:37 
GeneralRe: Context menu in CHtmlView question. Pin
Anonymous14-Aug-02 6:10
Anonymous14-Aug-02 6:10 
GeneralRe: Context menu in CHtmlView question. Pin
Michael Liu14-Aug-02 6:35
Michael Liu14-Aug-02 6:35 
QuestionPressed Enter ? Pin
Hadi Rezaee14-Aug-02 5:09
Hadi Rezaee14-Aug-02 5:09 
AnswerRe: Pressed Enter ? Pin
Andreas Saurwein14-Aug-02 5:40
Andreas Saurwein14-Aug-02 5:40 
AnswerRe: Pressed Enter ? Pin
KingsGambit14-Aug-02 5:50
KingsGambit14-Aug-02 5:50 
1. Create your own class, say MyEdit.
2. Derive it from CEdit.
3. In my edit add a handler for the message WM_GETDLGCODE message by using the class wizard.
4. The Wizard will add the handler afx_msg UINT OnGetDlgCode() for you.
5.Replace the default return value by return DLGC_WANTALLKEYS;

6.Now in the same way add one more handler for WM_KEYDOWN. nChar value will be 13 for Enter-Key. Handle the Enter-Key event here.

7. Use the new class in your dialog box instead of the CEdit class to get Enter-Key event.

Big Grin | :-D

Regards,
Rejeesh

QuestionListen a port using CSocket class ?? Pin
Cris14-Aug-02 4:52
Cris14-Aug-02 4:52 
AnswerRe: Listen a port using CSocket class ?? Pin
User 665814-Aug-02 5:39
User 665814-Aug-02 5:39 
GeneralRe: Listen a port using CSocket class ?? Pin
Cris14-Aug-02 7:21
Cris14-Aug-02 7:21 
GeneralRe: Listen a port using CSocket class ?? Pin
User 665814-Aug-02 7:50
User 665814-Aug-02 7:50 
GeneralRe: Listen a port using CSocket class ?? Pin
Cris14-Aug-02 9:20
Cris14-Aug-02 9:20 
GeneralRe: Listen a port using CSocket class ?? Pin
User 665814-Aug-02 9:46
User 665814-Aug-02 9:46 
GeneralRe: Listen a port using CSocket class ?? Pin
Cris14-Aug-02 10:21
Cris14-Aug-02 10:21 
QuestionListbox, how to make only full items visible? Pin
Anonymous14-Aug-02 4:21
Anonymous14-Aug-02 4:21 
AnswerRe: Listbox, how to make only full items visible? Pin
Anonymous14-Aug-02 15:54
Anonymous14-Aug-02 15:54 
GeneralDirection with MDI's Pin
NickOne14-Aug-02 3:58
NickOne14-Aug-02 3:58 
GeneralRe: Direction with MDI's Pin
Steen Krogsgaard15-Aug-02 4:05
Steen Krogsgaard15-Aug-02 4:05 
General2 Qs. (MFC basic level) Pin
RalfPeter14-Aug-02 3:56
RalfPeter14-Aug-02 3:56 
GeneralRe: 2 Qs. (MFC basic level) Pin
567890123414-Aug-02 4:47
567890123414-Aug-02 4:47 
GeneralRe: 2 Qs. (MFC basic level) Pin
Roman Fadeyev14-Aug-02 5:09
Roman Fadeyev14-Aug-02 5:09 
GeneralFormatting Large doubles Pin
gm_coll14-Aug-02 3:46
gm_coll14-Aug-02 3:46 
GeneralRe: Formatting Large doubles Pin
Tomasz Sowinski14-Aug-02 4:21
Tomasz Sowinski14-Aug-02 4:21 
GeneralVector Question Pin
Nick Parker14-Aug-02 3:38
protectorNick Parker14-Aug-02 3:38 

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.