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. MFC Keyboard input trouble

MFC Keyboard input trouble

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionlearning
3 Posts 3 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.
  • S Offline
    S Offline
    s o v a n n
    wrote on last edited by
    #1

    Hi! I have written:

    void JEdit::OnKeyUp(UINT ch, UINT count, UINT flags)
    {
    switch ( ch ) {
    case VK_BACK_SPACE:
    {
    ....
    }
    ....
    }

    I wanted to detected backspace key, but the compiler says: "'VK_BACK_SPACE' : undeclared identifier" . What should I do? Thanks, Sovann. Why waste time learning while ignorence is instantaneous ? [Hobbes]

    A B 2 Replies Last reply
    0
    • S s o v a n n

      Hi! I have written:

      void JEdit::OnKeyUp(UINT ch, UINT count, UINT flags)
      {
      switch ( ch ) {
      case VK_BACK_SPACE:
      {
      ....
      }
      ....
      }

      I wanted to detected backspace key, but the compiler says: "'VK_BACK_SPACE' : undeclared identifier" . What should I do? Thanks, Sovann. Why waste time learning while ignorence is instantaneous ? [Hobbes]

      A Offline
      A Offline
      Alvaro Mendez
      wrote on last edited by
      #2

      Use VK_BACK instead. :-) Regards, Alvaro


      Well done is better than well said. -- Benjamin Franklin (I actually prefer medium-well.)

      1 Reply Last reply
      0
      • S s o v a n n

        Hi! I have written:

        void JEdit::OnKeyUp(UINT ch, UINT count, UINT flags)
        {
        switch ( ch ) {
        case VK_BACK_SPACE:
        {
        ....
        }
        ....
        }

        I wanted to detected backspace key, but the compiler says: "'VK_BACK_SPACE' : undeclared identifier" . What should I do? Thanks, Sovann. Why waste time learning while ignorence is instantaneous ? [Hobbes]

        B Offline
        B Offline
        Bill Wilson
        wrote on last edited by
        #3

        What should I do? Don't use it if it isn't defined. Use VK_BACK it is defined. Or just define it as 8. Thanks for the help, Bill

        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