Thread: + Windows message

  1. #1
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483

    + Windows message

    What is the Windows Message send when '+' is pressed on the Number pad? also the '-' on the number pad Windows Message?

    BTW if you know the message fo MFC that would be great if not great again
    My Website
    010000110010101100101011
    Add Color To Your Code!

  2. #2
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357
    WM_KEYDOWN or WM_KEYUP, your window has to have the focus, I believe mfc is OnKeyUp and OnKeyDown
    If you need to always thieve the key then you can use hooks

  3. #3
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    Thanks, it worked
    My Website
    010000110010101100101011
    Add Color To Your Code!

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Also check out PreTranslateMessage().

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange string behavior
    By jcafaro10 in forum C Programming
    Replies: 2
    Last Post: 04-07-2009, 07:38 PM
  2. Global Variables
    By Taka in forum C Programming
    Replies: 34
    Last Post: 11-02-2007, 03:25 AM
  3. Custom Windows Message.
    By Mastadex in forum Windows Programming
    Replies: 9
    Last Post: 05-10-2006, 01:43 PM
  4. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  5. How come this only works in Windows nt/2000?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 08-30-2002, 06:54 PM