Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Enter button not working on CBitmapButton.

Enter button not working on CBitmapButton.

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Le rner
    wrote on last edited by
    #1

    Hi all, i m using a button and create its variable from CBitmapButton derived class, and load bitamps on this button CBitmapButton::LoadBitmaps function. but when i focus the button and press enter key here the button is not pressed while its working for space key. please help me for this. thanks in advance.

    A 1 Reply Last reply
    0
    • L Le rner

      Hi all, i m using a button and create its variable from CBitmapButton derived class, and load bitamps on this button CBitmapButton::LoadBitmaps function. but when i focus the button and press enter key here the button is not pressed while its working for space key. please help me for this. thanks in advance.

      A Offline
      A Offline
      ARopo
      wrote on last edited by
      #2

      This if I remember correctly is exactly how it should behave. On a Dialog pressing enter will 'click' the dialog's default button, otherwise you will need to handle WM_KEYUP and trap VK_ENTER

      L 1 Reply Last reply
      0
      • A ARopo

        This if I remember correctly is exactly how it should behave. On a Dialog pressing enter will 'click' the dialog's default button, otherwise you will need to handle WM_KEYUP and trap VK_ENTER

        L Offline
        L Offline
        Le rner
        wrote on last edited by
        #3

        Thanks.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups