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. Add Scroll bar to a Static control-(pls reply)

Add Scroll bar to a Static control-(pls reply)

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
2 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.
  • T Offline
    T Offline
    TobetheWinner
    wrote on last edited by
    #1

    I Created a dynamic Static control using CStatic.So i need to draw controls inside the Static control. The problem is adding a Scrollbar , enable and using it. CStatic temp = new CStatic(); temp ->Create(NULL, SS_GRAYFRAME |WS_VSCROLL| SS_REALSIZECONTROL , rect, parent); So because of using WS_VSCROLL the Scroll was there but i dont know how to enable and use it.So please tell me how to do it or tell me a good web site about that. hemajith

    W 1 Reply Last reply
    0
    • T TobetheWinner

      I Created a dynamic Static control using CStatic.So i need to draw controls inside the Static control. The problem is adding a Scrollbar , enable and using it. CStatic temp = new CStatic(); temp ->Create(NULL, SS_GRAYFRAME |WS_VSCROLL| SS_REALSIZECONTROL , rect, parent); So because of using WS_VSCROLL the Scroll was there but i dont know how to enable and use it.So please tell me how to do it or tell me a good web site about that. hemajith

      W Offline
      W Offline
      Wim Engberts
      wrote on last edited by
      #2

      Why don't you declare it directly as a scrollbar? CScrollBar *temp = new CScrollBar; temp->Create (NULL,.......); In that case you would have all the normal scrollbar's access. William

      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