News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Creating scroll bars

Started by Farabi, February 26, 2005, 05:06:17 AM

Previous topic - Next topic

Farabi

How to do it?
If I use BitBlt will the scrollbars picture overwriten? :dazzled:
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

petezl

You need to Post the code. There are two routes. Standard scrollbars and custom ones. Standard scroll bars more or less look after themselves, you just need to intercept the messages. Custom scrollbars have to be created and placed by the app. The picture control then has to be positioned so as not to overlap either the scolls or anything else in the client window, such as Statusbars and toolbars.
Hope this helps!
Peter.
Cats and women do as they please
Dogs and men should realise it.

Farabi

Quote from: petezl on February 26, 2005, 11:11:55 AM
You need to Post the code. There are two routes. Standard scrollbars and custom ones. Standard scroll bars more or less look after themselves, you just need to intercept the messages. Custom scrollbars have to be created and placed by the app. The picture control then has to be positioned so as not to overlap either the scolls or anything else in the client window, such as Statusbars and toolbars.
Hope this helps!
Peter.

Thanks I undestand a bit. So if I use Bitblt I can overwrite the picture.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

petezl

I had no reason to use them until recently. There is a nice C article herehttp://www.codeproject.com/bitmap/bmpscroll.asp
and of course some stuff at MSDN.
I must admit, I found some peculiarities when messing around with the ScrollInfo structure. You really need to make a scroll test app and explore all the messages and how they work, it gets quite involved if you use non system scrollbars.
Peter
Cats and women do as they please
Dogs and men should realise it.