October 28, 2025, 11:38:08 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


XP themed scrollbars

Started by ckoehn, March 08, 2010, 10:37:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ckoehn

How do you show and XP themed scrollbar when you make a scrollbar control?

CONST TypeVScroll=2

CONTROL win,@SCROLLBAR,"",80,120,20,120,@TABSTOP|@CTSCROLLVERT,TypeVScrol

This only show a normal scrollbar.

Thanks,
Clint

sapero

Copy a hidden file c:\windows\WindowsShell.Manifest to the directory with your program, and then rename the manifest file to yourprogram.exe.manifest.
The hidden flag can be removed.
Optionally you could embed the manifest file as a resource in your program. Set resource type to 24, resource id to 1.

ZeroDog

QuoteOptionally you could embed the manifest file as a resource in your program. Set resource type to 24, resource id to 1.

Thanks for that tidbit.  I was just wondering if there were a way to include the manifest in the binary.  :)

ckoehn

Thanks sapero.  That worked.

Later,
Clint