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