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. Insert -- OVR

Insert -- OVR

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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.
  • H Offline
    H Offline
    halblonious
    wrote on last edited by
    #1

    Does anyone know how to implement the usage of this indicator? I put it in: static UINT indicators[] = { ID_SEPARATOR, // status line indicator ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, ID_INDICATOR_OVR, }; But I have no clue where to go from there to make the little guy in the bottom right corner actually toggle on and off. halblonious

    D 1 Reply Last reply
    0
    • H halblonious

      Does anyone know how to implement the usage of this indicator? I put it in: static UINT indicators[] = { ID_SEPARATOR, // status line indicator ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, ID_INDICATOR_OVR, }; But I have no clue where to go from there to make the little guy in the bottom right corner actually toggle on and off. halblonious

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      You'll need to add a UI handler for it. In the appropriate message map, add the ON_UPDATE_COMMAND_UI macro (outside the “{{AFX” comments), for ID_INDICATOR_OVR (in Mainfrm.cpp):

      ON_UPDATE_COMMAND_UI(ID_INDICATOR_OVR, OnUpdateOver)

      void CMainFrame::OnUpdateOver(CCmdUI *pCmdUI)
      {
      if (some_condition)
      pCmdUI->SetText("Over");
      else
      pCmdUI->SetText("");
      }

      H 1 Reply Last reply
      0
      • D David Crow

        You'll need to add a UI handler for it. In the appropriate message map, add the ON_UPDATE_COMMAND_UI macro (outside the “{{AFX” comments), for ID_INDICATOR_OVR (in Mainfrm.cpp):

        ON_UPDATE_COMMAND_UI(ID_INDICATOR_OVR, OnUpdateOver)

        void CMainFrame::OnUpdateOver(CCmdUI *pCmdUI)
        {
        if (some_condition)
        pCmdUI->SetText("Over");
        else
        pCmdUI->SetText("");
        }

        H Offline
        H Offline
        halblonious
        wrote on last edited by
        #3

        Than you! halblonious

        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