CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    14

    How to progam the function keys

    I would like my application which is in the system tray to respond to a particular function key, lets say F4.
    How do I do that? In a Win32 WndProc do I have a case for WM_KEYDOWN and checks for the function key value? Or do I have to create a hook function?
    I cannot find any information about Function Keys in Visual C++ anywhere.
    Could someone enlighten me and provide pointer to documentation sources.
    Thanks


  2. #2
    Join Date
    May 1999
    Posts
    36

    Re: How to progam the function keys

    Hi,


    I don't know about apps in the taskbar, but in my apps, I can just map one of the function keys (VK_F1 - VK_F12) to a handler with an accelerator table. Might work for you too...

    HTH,




    Harvey Hawes

    Software Engineer
    BioScience Analysis Software Ltd.

    Masters Candidate
    Cardiovascular/Respiratory Sciences
    Faculty of Medicine
    University of Calgary
    Calgary, Alberta, Canada

  3. #3
    Join Date
    May 1999
    Posts
    24

    Re: How to progam the function keys

    Use PreTranslateMessage function and then filter messages by VK_F1...

    Thanks,
    Ilgar Mashayev

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