How to retrieve windows colours?

BlitzPlus Forums/BlitzPlus Programming/How to retrieve windows colours?

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.

Say I want to draw an image with a transparent background on to my window. I make a canvas, I then colour the canvas to the colour of the window, then draw my image (with a black background to make it transparent) onto the canvas.

However this won't work if the default windows colour scheme has been changed.

So I need either another way to do this, or a way to find out the default windows background colour.