How to intercept a keystroke in document/view structure?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Andrew (anonymous_at_discussions.microsoft.com)
Date: 05/21/04

  • Next message: GuitarBill: "RE: How to intercept a keystroke in document/view structure?"
    Date: Fri, 21 May 2004 14:11:03 -0700
    
    

    Hi, friends,

    I am reading MS sample code of WordPad. I tried to understand how and where the typed text are stored.

    In OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) of WordPadView class, at the top, I set
       nChar = 0x41;

    I was expecting I will alway have a capital letter A. But, to my surprise, WordPad still showed whatever I typed, not A.

    Why this happens? Any ideas? Thanks a lot.....


  • Next message: GuitarBill: "RE: How to intercept a keystroke in document/view structure?"

    Relevant Pages