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. Arrow Key use in MFC vc++ Application

Arrow Key use in MFC vc++ Application

Scheduled Pinned Locked Moved C / C++ / MFC
c++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.
  • R Offline
    R Offline
    rajmohan 123
    wrote on last edited by
    #1

    Hi, I am new in MFC vc++ Please help me to come out from an major issue. I want to move an object(Image,Rectangle) ..etc in Canvas buy using Arrow Key(left,right,up,down) in MFC VC++ application.only i get OnKeyDown()function I am not able to use this OnKeyDown()function to get keyboard event. please provide a proper code

    C 1 Reply Last reply
    0
    • R rajmohan 123

      Hi, I am new in MFC vc++ Please help me to come out from an major issue. I want to move an object(Image,Rectangle) ..etc in Canvas buy using Arrow Key(left,right,up,down) in MFC VC++ application.only i get OnKeyDown()function I am not able to use this OnKeyDown()function to get keyboard event. please provide a proper code

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      is this a dialog-based application? in that case, you need to handle WM_GETDLGCODE first: ex: OnKeyDown not called when pressing arrow keys[^]

      image processing toolkits | batch image processing

      R 1 Reply Last reply
      0
      • C Chris Losinger

        is this a dialog-based application? in that case, you need to handle WM_GETDLGCODE first: ex: OnKeyDown not called when pressing arrow keys[^]

        image processing toolkits | batch image processing

        R Offline
        R Offline
        rajmohan 123
        wrote on last edited by
        #3

        Hi Chris Losinger Yes this is dialog-based application but arrow key functionality i need to apply in canvas/editor not in dialog. 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