Pete
2007-01-22 02:11:42 UTC
Hi All
Can anyone show me how to change the colour of a bitmap using code?
The bitmaps that I currently want to change are those used with the
TTabbedNotebook; wdsibyl\bmp\compnt\edgetop.bmp and edgetopp.bmp.
Those bmp files need to be changed to the current colour used for the Notebook
Page Background.
Why?
Because Sibyl applications look very silly if a user has a non-default colour
scheme on their Desktop. If they have set the Notebook Page Backgound to a
colour other than grey then the above bitmaps need to be changed to match.
I guess I would use WinQuerySysColor to find the value of SYSCLR_BACKGROUND. How
would I then change the colour of the bitmaps to the value of SYSCLR_BACKGROUND ?
I suspect the answer would also apply to other bitmap situations ie when using
Glyphs on Buttons.
Regards
Pete
Can anyone show me how to change the colour of a bitmap using code?
The bitmaps that I currently want to change are those used with the
TTabbedNotebook; wdsibyl\bmp\compnt\edgetop.bmp and edgetopp.bmp.
Those bmp files need to be changed to the current colour used for the Notebook
Page Background.
Why?
Because Sibyl applications look very silly if a user has a non-default colour
scheme on their Desktop. If they have set the Notebook Page Backgound to a
colour other than grey then the above bitmaps need to be changed to match.
I guess I would use WinQuerySysColor to find the value of SYSCLR_BACKGROUND. How
would I then change the colour of the bitmaps to the value of SYSCLR_BACKGROUND ?
I suspect the answer would also apply to other bitmap situations ie when using
Glyphs on Buttons.
Regards
Pete