CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    romania
    Posts
    43

    catch the keyboard

    I have a dialog box with a cricheditctrl inside.
    I can't catch the keyboard although I use OnChar() function.


  2. #2
    Guest

    Re: catch the keyboard

    Hi ,

    You need to derive your own CRichedit Class, call, the following code

    OnGetDlgCode..

    UINT result = CMyDerivedClass::OnGetDlgCode();
    result = result DLGC_WANTALLKEYS;
    return result;

    Then you can call OnChar or OnKeyDown


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured