mfc >> how to create a scrollable CStatic control

by Nikolay Anestev » Mon, 26 Apr 2004 23:09:47 GMT

Hi all. I have the following problem: I would like to have some scrolling
abilities within a CStatic control. When CWnd::ShowScrollbar() is called the
scroll bar that appears is some kind of not active and it invokes no window
messages. Please help. Thank you in advance.
Nik.



Similar Threads

1. Creating a scrollable window for runtime created controls

2. how to create "scrollable" control

myForm is 500x400 px and it has panel1 control which is 4000x200 px!!
how can I create scrollbar on a panel1 so it's contents may be scrolled left
and right?
(c++.net)


3. How to create a scrollable dialog box ?

4. How to place control on a scrollable panel ?

hi to all,

i have a picture box in a scrollable panel control.
I can drag and drop the picture box inside the panel to the correct position
by taking the MousePosition point and evauatint the relative edge of the 
main form

So far so good.
The problem is that if i scroll down the panel a little, my picture box 
cannot place itself
on the panel at the correct place.
I need a way to compute the relative distance (i think) between the new 
panel surface
and the main's form.

Has anybody any ideas how i can do that ?


thanks a lot for any help 


5. override keyboard for custom scrollable control - CSharp/C#

6. Scrollable Control

Hi,

I have a custom control which is a descendant of ScrollableControl.

I have everything working fine, except I want to be able to adjust the 
scroll position in code.
I have created some 'hot spot' areas around the edges of the control, 
and I want to be able to change the values of the scrollbar positions 
when the mouse is over one of these areas - but I don't seem to be able 
to get access to the actual scroll bars.

There must be a way of doing this.


Please help - this is driving me mad!


Thanks.


Paul Cheetham

7. Scrollable Control Scroll Bars - CSharp/C#

8. Scrollable CWnd as Control Container?

I have a CWnd-derived class, called CFrame, which acts as a container
control for various Windows controls which are created at run time. I want
to add scrollbars to this frame, to support enlarging the control-owning
surface without enlarging the window real estate occupied by the frame
control.

Does it make sense to create a new window and use that as the control
container, scrolling different parts of this into view when the CFrame
scrollbars are moved? Is there a reasonable way to do this with out all the
child controls needing to be redrawn on scrolling? Note: I am not using the
doc/view architecture, so cannot use a CScrollView.

Thanks for any help!