Thread: DialogBox and the keyboard

  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
    589
    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,792

  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