Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCrash in CReBar::AddBar() under .Net Pin
pvlasie19-Nov-02 4:39
pvlasie19-Nov-02 4:39 
QuestionWhere custom ie toolbar is located? Pin
Weiye Chen19-Nov-02 4:17
Weiye Chen19-Nov-02 4:17 
AnswerRe: Where custom ie toolbar is located? Pin
Chris Hambleton19-Nov-02 11:54
Chris Hambleton19-Nov-02 11:54 
GeneralDigital timer MFC/C++ Pin
Justina0119-Nov-02 3:39
Justina0119-Nov-02 3:39 
GeneralRe: Digital timer MFC/C++ Pin
RobJones19-Nov-02 5:31
RobJones19-Nov-02 5:31 
GeneralRe: Digital timer MFC/C++ Pin
valikac19-Nov-02 7:26
valikac19-Nov-02 7:26 
Generaldouble channels in ISDN Pin
Tili19-Nov-02 3:37
Tili19-Nov-02 3:37 
GeneralKeyboard input trouble Pin
s o v a n n19-Nov-02 3:05
s o v a n n19-Nov-02 3:05 
Hi!Smile | :)

I am writing a custom edit control:

class MyEdit : public CWnd {
....
};

void MyEdit::OnKeyDown(UINT ch, UINT flags)
{
  CString text;
  GetWindowText(text);
  text += (TCHAR)ch;
  SetWindowText(text);
  Invalidate();         // custom painting
}

The problem is: What I got is not conformed to what is expected and a beep every input char.
e.g:  [Keyboard]-->[Result]
       a              A
       F4             s


What happend? How could I solve it?Confused | :confused:

Thanks,
Sovann.

Why waste time learning while ignorence is instantaneous ? [Hobbes]
GeneralRe: Keyboard input trouble Pin
benjymous19-Nov-02 3:44
benjymous19-Nov-02 3:44 
GeneralRe: Keyboard input trouble Pin
Jason Henderson19-Nov-02 3:48
Jason Henderson19-Nov-02 3:48 
GeneralRe: Keyboard input trouble Pin
benjymous19-Nov-02 5:21
benjymous19-Nov-02 5:21 
GeneralPassword Filter under Win2k Pin
Lhenno Ferrari19-Nov-02 2:30
Lhenno Ferrari19-Nov-02 2:30 
GeneralRe: Password Filter under Win2k Pin
benjymous19-Nov-02 3:46
benjymous19-Nov-02 3:46 
GeneralRe: Password Filter under Win2k Pin
Lhenno Ferrari20-Nov-02 1:06
Lhenno Ferrari20-Nov-02 1:06 
Generalchanging the text in tabs Pin
Luke Murray19-Nov-02 1:50
Luke Murray19-Nov-02 1:50 
GeneralRe: changing the text in tabs Pin
Roger Allen19-Nov-02 1:59
Roger Allen19-Nov-02 1:59 
GeneralRe: changing the text in tabs Pin
Luke Murray19-Nov-02 2:19
Luke Murray19-Nov-02 2:19 
GeneralRe: changing the text in tabs Pin
Roger Allen19-Nov-02 5:15
Roger Allen19-Nov-02 5:15 
GeneralNeed definitions of constants for SetupDiGetDeviceRegistryProperty Pin
Dominik Reichl19-Nov-02 1:47
Dominik Reichl19-Nov-02 1:47 
GeneralRe: Need definitions of constants for SetupDiGetDeviceRegistryProperty Pin
Gary Kirkham19-Nov-02 5:01
Gary Kirkham19-Nov-02 5:01 
GeneralRe: Need definitions of constants for SetupDiGetDeviceRegistryProperty Pin
Dominik Reichl19-Nov-02 7:25
Dominik Reichl19-Nov-02 7:25 
GeneralRe: Need definitions of constants for SetupDiGetDeviceRegistryProperty Pin
Gary Kirkham19-Nov-02 11:12
Gary Kirkham19-Nov-02 11:12 
GeneralConverting text into image Pin
Shamoon19-Nov-02 0:51
Shamoon19-Nov-02 0:51 
GeneralRe: Converting text into image Pin
Miguel Lopes19-Nov-02 10:02
Miguel Lopes19-Nov-02 10:02 
Generala question about formview Pin
niuhaiyun19-Nov-02 0:41
niuhaiyun19-Nov-02 0:41 

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.