CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Posts
    25

    Virtual Keys not getting to OnChar

    Hello

    I have a CView derived class and am trying to recreate a simple text editor. I am trying to trap arrow keys, through case VK_LEFT: etc. in the OnChar() method. That didn't work and upon further investigation I realized that NO virtual keys (home, end, pgdn all the arrows, etc) are reaching the OnChar method. Does anyone know how to fix this or what I need to do?



  2. #2
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: Virtual Keys not getting to OnChar

    Hi,

    I have a feeling this question should go in the C++ board, as you probably won't get many answers from the VB forum.

    HTH,
    Duncan



    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

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