1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,287
    Likes Received:
    364
    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