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. standard scrollbar & scrollbar control

standard scrollbar & scrollbar control

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

    is there any way to determine a window has standard scrollbar or scrollbar control? in other word, how to scroll a window that does not belong to my app?

    M 1 Reply Last reply
    0
    • A ashxly

      is there any way to determine a window has standard scrollbar or scrollbar control? in other word, how to scroll a window that does not belong to my app?

      M Offline
      M Offline
      Monty2
      wrote on last edited by
      #2

      Try sending WM_HSCROLL and WM_VSCROLL Messages to that Window Live as if your were to die tomorrow. Learn as if you were to live forever. -Mahatma Gandhi

      A 1 Reply Last reply
      0
      • M Monty2

        Try sending WM_HSCROLL and WM_VSCROLL Messages to that Window Live as if your were to die tomorrow. Learn as if you were to live forever. -Mahatma Gandhi

        A Offline
        A Offline
        ashxly
        wrote on last edited by
        #3

        sure, you are right but i want to get some information about the scrollbar(range,pos etc.) Do you know how can i do it??? thanks

        M 1 Reply Last reply
        0
        • A ashxly

          sure, you are right but i want to get some information about the scrollbar(range,pos etc.) Do you know how can i do it??? thanks

          M Offline
          M Offline
          Monty2
          wrote on last edited by
          #4

          Why don't you use GetScrollRange with the HWND of scroll bar MSDN says If the specified window does not have standard scroll bars or is not a scroll bar control, the GetScrollRange function copies zero to the lpMinPos and lpMaxPos parameters. this might help :) Live as if your were to die tomorrow. Learn as if you were to live forever. -Mahatma Gandhi

          A 1 Reply Last reply
          0
          • M Monty2

            Why don't you use GetScrollRange with the HWND of scroll bar MSDN says If the specified window does not have standard scroll bars or is not a scroll bar control, the GetScrollRange function copies zero to the lpMinPos and lpMaxPos parameters. this might help :) Live as if your were to die tomorrow. Learn as if you were to live forever. -Mahatma Gandhi

            A Offline
            A Offline
            ashxly
            wrote on last edited by
            #5

            MailMonty, thanks for your reply, I have tried to use GetScrollRange but nothing happened, the min&max of the range are both zero but i want to get the range and scroll it exactly have you any good idea?

            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