Re: SW_HIDE and CScrollView
Have you tried to update the window using UpdateWindow method? If not try invoking UpdateWindow after ShowWindow
Thanks,
dwurity
Re: SW_HIDE and CScrollView
yes,
i have done also Updatewindow, but nothing changes
Re: SW_HIDE and CScrollView
Are you trying to hide ScrollView or scrollbar in ScrollView?
Thanks,
dwurity
Re: SW_HIDE and CScrollView
sorry....I have used CScrollBar, m_scroll is of CScrollBar type
Re: SW_HIDE and CScrollView
Try calling ShowScrollBar() method.
Thanks,
dwurity
Re: SW_HIDE and CScrollView
:(
I've just tried...no news
Re: SW_HIDE and CScrollView
From starting, you are on a wrong path.
A scroll view (implemented by CScrollView), like any other type of view, is designed to sit in a frame window, with the respect of SDI/MDI architecture and NOT in a static control (implemented by CStatic).
What you really want to accomplish? It seems, you have added that scroll view in a static control in order to "manage scroll bars". Am I right?
Re: SW_HIDE and CScrollView
Quote:
Originally Posted by
doxdici
Hallo,I have created a class derived from CStatic, and I have added a member to this class, a CScrollView.
That sounds like a very odd thing to do. Did you add some kind of frame for the view?
Re: SW_HIDE and CScrollView
I'm sorry...I haven't put CScrollView but CScrollBar...it was a lapsus:D
Re: SW_HIDE and CScrollView
Quote:
Originally Posted by
doxdici
I'm sorry...I haven't put CScrollView but CScrollBar...it was a lapsus:D
Is it so much time between having that problem and posting this topic, or we are just shooting in the dark? :rolleyes:
Well, not even putting a scrollbar control in a static contol is a brillant ideea.
A scrollbar control (implemented by CScrollBar) is designed, like most of other controls, to sit in a dialog.
If you want to manage scrollbars in the static contol, you have to derive from CStatic, use scrollbar-related functions and handle WM_HSCROLL and/or WM_VSCROLL messages.