Click here to Skip to main content
15,921,279 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The left tree in the code editor in vs.net Pin
Tcpip20053-Jul-04 23:33
Tcpip20053-Jul-04 23:33 
GeneralMaximum number of threads.. Pin
Laing,James3-Jul-04 6:57
Laing,James3-Jul-04 6:57 
GeneralRe: Maximum number of threads.. Pin
Graham Bradshaw3-Jul-04 12:52
Graham Bradshaw3-Jul-04 12:52 
GeneralRe: Maximum number of threads.. Pin
Laing,James4-Jul-04 0:13
Laing,James4-Jul-04 0:13 
GeneralRe: Maximum number of threads.. Pin
Graham Bradshaw4-Jul-04 0:48
Graham Bradshaw4-Jul-04 0:48 
GeneralRe: Maximum number of threads.. Pin
Laing,James4-Jul-04 1:08
Laing,James4-Jul-04 1:08 
QuestionHow to Capture Screen with DirectX 8 or 9 ? >"< Pin
cher88230333-Jul-04 6:42
cher88230333-Jul-04 6:42 
GeneralCustom Controls in/within MFC Pin
0v3rloader3-Jul-04 4:33
0v3rloader3-Jul-04 4:33 
Hi there!

I am creating a custom control in MFC, which, when finished, should be something like a Command Prompt. I have ruled out the possibility of using a standard CEdit control as I need loads of different features which can only be accomplished by using a customized control.

It already is working fairly well: it outputs the character input by the user; it performs backspace action (with validation); and some other (very basic) features.

This is my first time creating custom controls in MFC and as you may have figured out by now, I am having some problems. So here it is:

- Obviously enough the Control must have keyboard input but whenever it has the focus and a key is pressed, a beep is sounded as if the control is not supposed to accept keyboard input. Why? Is it not correctly setup? How can I workaround this?

- Also, the only way I can get access to the keyboard input is by listening to the OnKeyDown message as OnChar doesn't work for some reason. Is this normal? Moreover, the keyboard input I get is based on virtual keys and not on the Keys themselves. Can someone tell me the best way to get the actual input char (upper/lower/plus flags)?

- Finally, whenever the control receives the focus, the event handler tries to show the caret (which was previously created), but it just doesn't show up. Again, is this occurring due to lack of proper setup?

Thank you for taking the time to read through.

Any help is greatly appreciated.

David



dNimrod#X
________________________


GeneralRe: Custom Controls in/within MFC Pin
Johan Rosengren3-Jul-04 6:01
Johan Rosengren3-Jul-04 6:01 
GeneralRe: Custom Controls in/within MFC Pin
0v3rloader3-Jul-04 6:59
0v3rloader3-Jul-04 6:59 
QuestionSave a CString ??? Pin
Larsson3-Jul-04 3:47
Larsson3-Jul-04 3:47 
AnswerRe: Save a CString ??? Pin
Ken Mazaika3-Jul-04 4:40
Ken Mazaika3-Jul-04 4:40 
GeneralRe: Save a CString ??? Pin
Larsson3-Jul-04 5:20
Larsson3-Jul-04 5:20 
GeneralRe: Save a CString ??? Pin
User 66583-Jul-04 6:17
User 66583-Jul-04 6:17 
AnswerRe: Save a CString ??? Pin
PJ Arends3-Jul-04 6:42
professionalPJ Arends3-Jul-04 6:42 
GeneralRe: Save a CString ??? Pin
Graham Bradshaw3-Jul-04 7:35
Graham Bradshaw3-Jul-04 7:35 
GeneralRe: Save a CString ??? Pin
PJ Arends3-Jul-04 8:02
professionalPJ Arends3-Jul-04 8:02 
GeneralRe: Save a CString ??? Pin
Graham Bradshaw3-Jul-04 13:03
Graham Bradshaw3-Jul-04 13:03 
Generalinvisible window with activex control Pin
maruku3-Jul-04 1:58
maruku3-Jul-04 1:58 
GeneralRe: invisible window with activex control Pin
Ryan Binns4-Jul-04 18:39
Ryan Binns4-Jul-04 18:39 
GeneralRe: invisible window with activex control Pin
maruku5-Jul-04 22:46
maruku5-Jul-04 22:46 
GeneralRe: invisible window with activex control Pin
Ryan Binns5-Jul-04 22:58
Ryan Binns5-Jul-04 22:58 
GeneralCDateTimeCtrl init Pin
JabraJabra3-Jul-04 0:48
JabraJabra3-Jul-04 0:48 
GeneralRe: CDateTimeCtrl init Pin
Gary R. Wheeler3-Jul-04 2:38
Gary R. Wheeler3-Jul-04 2:38 
GeneralRe: CDateTimeCtrl init Pin
JabraJabra5-Jul-04 5:52
JabraJabra5-Jul-04 5:52 

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.