October 29, 2025, 01:13:58 PM

News:

IWBasic runs in Windows 11!


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