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. Ctrl + Tab => next Page

Ctrl + Tab => next Page

Scheduled Pinned Locked Moved C / C++ / MFC
c++javascriptquestion
1 Posts 1 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.
  • W Offline
    W Offline
    WernerP
    wrote on last edited by
    #1

    Hi, I have an MFC tab control which holds a couple of dialogs. On the first page there is a dialog which has a CListCtrl. I would like to implement Ctrl + Tab => next page Shift + Ctrl + Tab => prev page. I thought this was simple - I would just override a WM_CHAR or WM_KEYDOWN or something similar. But the MFC handlers for these messages do not react to holding down/releasing Tab. They also don't give info, whether a combination of control keys like shift and ctrl are pressed together with tab. Will I have to override PreTranslateMessage and set/unset a flag for the shift resp control keys when they are pressed/released? Or is there a more elegant solution? Or is that kind of behavior already part of the tab control's standard implementation, and I just don't realize? Thanks in advance regards Werner

    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