CCtrlView && Scrollbars
Han Martens ME -- 100331.3624@CompuServe.COM
Monday, April 22, 1996
Hello,
Environment: Win95, VC4.1
I am using an MDI child window with a static splitter and two different views.
One of the views is derived from CCtrlView. In the OninitialUpdate() member I
add the header items with InsertColumn(), and it works fine. When I start the
application, and a new child window is displayed, there is no horizontal
scrollbar for the CCtrlView (although it is needed and should be there).
Resizing the window (just a tiny little bit) makes the horizontal scrollbar
appear. How can I make the scrollbar come up right after the child window is
created? I just don't seem to be able to find the how and where. A MoveWindow()
call would probably do, but there must be an easier way. Any suggestions?
Regards,
Han Martens
Gonzalo Isaza -- gonzaloi@microsoft.com
Tuesday, April 23, 1996
How about trying CWnd::ShowScrollBar.
Gonzalo
[I do not speak for Microsoft]
>----------
>From: Han Martens [ME][SMTP:100331.3624@CompuServe.COM]
>Sent: Sunday, April 21, 1996 9:07 PM
>To: All
>Subject: CCtrlView && Scrollbars
>
>Hello,
>
>Environment: Win95, VC4.1
>
>I am using an MDI child window with a static splitter and two different
>views.
>One of the views is derived from CCtrlView. In the OninitialUpdate()
>member I
>add the header items with InsertColumn(), and it works fine. When I
>start the
>application, and a new child window is displayed, there is no
>horizontal
>scrollbar for the CCtrlView (although it is needed and should be
>there).
>Resizing the window (just a tiny little bit) makes the horizontal
>scrollbar
>appear. How can I make the scrollbar come up right after the child
>window is
>created? I just don't seem to be able to find the how and where. A
>MoveWindow()
>call would probably do, but there must be an easier way. Any
>suggestions?
>
>Regards,
>Han Martens
>
>
>
>
| Вернуться в корень Архива
|