- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
I have a quickwin application. Using Win API, I know how to disable scroll bar of a child window. However, I would like to hide both scroll bars completely. The function ShowScrollBar() does not seem to work. Don't know where went wrong. Could anyone help? Thank in advance.
Mao
I have a quickwin application. Using Win API, I know how to disable scroll bar of a child window. However, I would like to hide both scroll bars completely. The function ShowScrollBar() does not seem to work. Don't know where went wrong. Could anyone help? Thank in advance.
Mao
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is tricky. ShowScrollBar should work; alternatively, you can try calling SetScrollInfo() API with SCROLLINFO.fMask having SIF_DISABLENOSCROLL bit cleared (but I think the effect will be the same).
However, if I recall correctly, either change "won't stick", as the QuickWin will reset scrollbars to the state it likes next time the window is resized (or even a drawing operation is perfomed, I'm not sure at the moment).
You might consider using the approach in http://www.xeffort.com/xeffort/samples/qw_xft/qw_xft.htm
i.e. override QuickWin drawing and scrolling entirely -- however, that also implies that you have to recode all the drawing code you had within.
However, if I recall correctly, either change "won't stick", as the QuickWin will reset scrollbars to the state it likes next time the window is resized (or even a drawing operation is perfomed, I'm not sure at the moment).
You might consider using the approach in http://www.xeffort.com/xeffort/samples/qw_xft/qw_xft.htm
i.e. override QuickWin drawing and scrolling entirely -- however, that also implies that you have to recode all the drawing code you had within.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page