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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DETERMINE VERTICAL SCROLLBAR PRESENCE IN LISTBOX

DETERMINE VERTICAL SCROLLBAR PRESENCE IN LISTBOX

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionlearning
5 Posts 3 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.
  • K Offline
    K Offline
    Killer3
    wrote on last edited by
    #1

    REQURIEMENT : DETERMINE VERTICAL SCROLLBAR PRESENCE IN LISTBOX. The ListBox has both vertical scrollbar and horizontal scrollbar checked in the resource. When we add string to ListBox ,after addding the number of items,the vertical scroll bar appears in the listcontrol. Is there any way to check whether the vertical scrollbar is available or not? CLISTBOX in vc++ for thendral -- modified at 5:33 Friday 12th May, 2006

    T N 2 Replies Last reply
    0
    • K Killer3

      REQURIEMENT : DETERMINE VERTICAL SCROLLBAR PRESENCE IN LISTBOX. The ListBox has both vertical scrollbar and horizontal scrollbar checked in the resource. When we add string to ListBox ,after addding the number of items,the vertical scroll bar appears in the listcontrol. Is there any way to check whether the vertical scrollbar is available or not? CLISTBOX in vc++ for thendral -- modified at 5:33 Friday 12th May, 2006

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      you have a problem with your keyboard, don't you ? unless it is with your homework ?! :rolleyes:


      TOXCCT >>> GEII power

      [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

      1 Reply Last reply
      0
      • K Killer3

        REQURIEMENT : DETERMINE VERTICAL SCROLLBAR PRESENCE IN LISTBOX. The ListBox has both vertical scrollbar and horizontal scrollbar checked in the resource. When we add string to ListBox ,after addding the number of items,the vertical scroll bar appears in the listcontrol. Is there any way to check whether the vertical scrollbar is available or not? CLISTBOX in vc++ for thendral -- modified at 5:33 Friday 12th May, 2006

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        check for the style WS_VSCROLL nave

        K 1 Reply Last reply
        0
        • N Naveen

          check for the style WS_VSCROLL nave

          K Offline
          K Offline
          Killer3
          wrote on last edited by
          #4

          HI NAVEEN.., i have the scroll property checked for both vertical and horizontal scrollbar. scenario 1: 1) you have Clist box 2) Add few entry to listbox till the vertical scroll bar appears 3) is there any way to find at this point that scrollbar has appeared. so that i may do some action based on that. Query : Any point of time given a LISBOX is it possible to find where VERTICAL SCROLL is visible or available . for thendral

          N 1 Reply Last reply
          0
          • K Killer3

            HI NAVEEN.., i have the scroll property checked for both vertical and horizontal scrollbar. scenario 1: 1) you have Clist box 2) Add few entry to listbox till the vertical scroll bar appears 3) is there any way to find at this point that scrollbar has appeared. so that i may do some action based on that. Query : Any point of time given a LISBOX is it possible to find where VERTICAL SCROLL is visible or available . for thendral

            N Offline
            N Offline
            Naveen
            wrote on last edited by
            #5

            For a list box even though u have set WS_VSCROLL style while creating, the style will be there untill there is enough item to show scroll bar. i.e.. The WS_VSCROLL style will only be there in the listbox if only the listbox have scroll bar at that time.. 1.Consider that a listbox can occupy 5 items with out scroll bar.. 2.Now the list is having 4 item..Hence there will not be any scroll bar.. So the listbox will not be having WS_VSCROLL style... 3. Now i inserted two more items so that the a verical scroll bar appear for the list box. 4. Now if i check for the WS_VSCROLL style.. it will be there nave

            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