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. tooltip

tooltip

Scheduled Pinned Locked Moved C / C++ / MFC
c++architecturetutorialquestion
7 Posts 6 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.
  • Y Offline
    Y Offline
    yogendra kaushik
    wrote on last edited by
    #1

    can anybody tell me when we login in computer and if caps lock ison then tool tip is there that caps lock is on how it comes as i make an applicsation in dialog based in mfc plz tellme example and plz give solid ans as i dont repeatr question plz.................. Please mail me

    _ S M 3 Replies Last reply
    0
    • Y yogendra kaushik

      can anybody tell me when we login in computer and if caps lock ison then tool tip is there that caps lock is on how it comes as i make an applicsation in dialog based in mfc plz tellme example and plz give solid ans as i dont repeatr question plz.................. Please mail me

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      I think what you need is to show the tooltips on the controls of the dialog? Right? Use CToolTipCtrl. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

      D 1 Reply Last reply
      0
      • Y yogendra kaushik

        can anybody tell me when we login in computer and if caps lock ison then tool tip is there that caps lock is on how it comes as i make an applicsation in dialog based in mfc plz tellme example and plz give solid ans as i dont repeatr question plz.................. Please mail me

        S Offline
        S Offline
        Sarath C
        wrote on last edited by
        #3

        Adding tooltip is simple. Just google for it... OnFocusing the edit box get the key state using GetKeyState(VK_CAPITAL). The retun value will be 1 if CAPSLOCK is on see detailed return values below. . If the high-order bit is 1, the key is down; otherwise, it is up. . If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled. Check MSDN for more information

        A 1 Reply Last reply
        0
        • _ _AnsHUMAN_

          I think what you need is to show the tooltips on the controls of the dialog? Right? Use CToolTipCtrl. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

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

          _AnShUmAn_ wrote:

          Right?

          Not entirely. The "balloon" message is displayed regardless of the mouse's position. It is displayed only when the password control has focus.


          "The largest fire starts but with the smallest spark." - David Crow

          "Judge not by the eye but by the heart." - Native American Proverb

          1 Reply Last reply
          0
          • S Sarath C

            Adding tooltip is simple. Just google for it... OnFocusing the edit box get the key state using GetKeyState(VK_CAPITAL). The retun value will be 1 if CAPSLOCK is on see detailed return values below. . If the high-order bit is 1, the key is down; otherwise, it is up. . If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled. Check MSDN for more information

            A Offline
            A Offline
            ashish dogra
            wrote on last edited by
            #5

            hi sir iam sorry this is not my question but as you tell GetKeyState(VK_CAPITAL) is for tool tip but sir where i can declare it if I MAKE AN DIALOG AND ON WHICH A EDIT BOX IS THERE Ashish Dogra MCA Noida

            S 1 Reply Last reply
            0
            • A ashish dogra

              hi sir iam sorry this is not my question but as you tell GetKeyState(VK_CAPITAL) is for tool tip but sir where i can declare it if I MAKE AN DIALOG AND ON WHICH A EDIT BOX IS THERE Ashish Dogra MCA Noida

              S Offline
              S Offline
              Sarath C
              wrote on last edited by
              #6

              ON_EN_SETFOCUS handler of the dialog class e.g

              BEG_MESSAGE_MAP()
              ON_EN_SETFOCUS(IDC_EDIT1, OnSetfocusEdit1)
              END_MESSAGE_MAP

              void CSampleDlgDlg::OnSetfocusEdit1()
              {
              }

              SaRath.
              "It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++ -- modified at 10:41 Tuesday 27th June, 2006

              1 Reply Last reply
              0
              • Y yogendra kaushik

                can anybody tell me when we login in computer and if caps lock ison then tool tip is there that caps lock is on how it comes as i make an applicsation in dialog based in mfc plz tellme example and plz give solid ans as i dont repeatr question plz.................. Please mail me

                M Offline
                M Offline
                Michael Dunn
                wrote on last edited by
                #7

                Are you asking how to show a tooltip? That's a new feature in XP, look up EM_SHOWBALLOONTIP

                --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer

                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