DialogBox and the keyboard

This is a discussion on DialogBox and the keyboard within the Windows Programming forums, part of the Platform Specific Boards category; I am having a hard time finding an example of processing key down messages in a Modal Dialog box. Does ...

  1. #1
    Elsbeth
    Guest

    Unhappy DialogBox and the keyboard

    I am having a hard time finding an example of processing key down messages in a Modal Dialog box. Does any one know of an example I could look at.

    EL

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    Are you using Mfc or Api ?

    If you are using Mfc you can add a function for the Keydown message and then use a switch for checking what key that was pressed

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

  4. #4
    Elsbeth
    Guest
    Thanks for the direction, now I have it narrowed down. First I am using API. I have a large bitmap image as a background in my dialog. With it in the dialog box, I am not recieving WM_KEYDOWN or any other key events. If I take it off I do recieve them. What would cause this and is there a way around it without losing the bitmap?

    El

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21