How to Get System Colors ?

BlitzPlus Forums/BlitzPlus Programming/How to Get System Colors ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Create or add to your existing 'User32.decls' file in your userlib folder.
.lib "User32.dll"
GetSysColor%(Color%) :"GetSysColor"   ;Use to get system colors, etc


Then, in blitz code;

Const WIN32_SYSCOLOR_3DFACE   = 15

rgb=GetSysColor(WIN32_SYSCOLOR_3DFACE)


Should get you the bg color of a window