Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29250 Discussions

How to hide scroll bar in a quickwin program?

csmao
Beginner
840 Views
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
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
840 Views
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.


0 Kudos
Reply