PreTranslteMessage()

Discussion in 'MFC' started by sampathkambar, Apr 16, 2008.

  1. sampathkambar

    sampathkambar New Member

    Joined:
    Jan 25, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I want to implement keyBoard shortcuts like ( Alt+p,Alt+L...).
    I hav implemented a dialog based appplication.And i want to implement those shortcuts for my controls on dialog box.

    Kindly hellp.
    Thanks in advance.

    Rgds,
    Sampath
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    You have 2 options

    1. Go for the keypress / Keydown event
    2. Handle the WndProc for the Keyboard events
     
  3. sampathkambar

    sampathkambar New Member

    Joined:
    Jan 25, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for ur reply...

    I got that in PreTranslateMessage() only.....
    Only i needed to check is whether it is WM_SYSKEYDOWN or WM_KEYDOWN....



    Rgds,
    Sampath
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice