::LoadImage and background color
-
I used ::LoadImage to load an icon on an owner-drawn button. On XP only, if the user changes the windows color scheme to "High Contrast#1" then then images that use the color black are hard to see. Can I peg the background color of a button so no matter what the user does the image remains unchanged? thanks ;)
-
I used ::LoadImage to load an icon on an owner-drawn button. On XP only, if the user changes the windows color scheme to "High Contrast#1" then then images that use the color black are hard to see. Can I peg the background color of a button so no matter what the user does the image remains unchanged? thanks ;)
Check out the LR_LOADMAP3DCOLORS flag for LoadImage. It will change the following colours RGB(128,128,128), RGB(192,192,192), and RGB(223,223,223) to the current system colours COLOR_3DSHADOW, COLOR_3DFACE, and COLOR_3DLIGHT respectively. You'll need to do this whenever your applications receives WMW_SYSCOLORCHANGE too. PeterRitchie.com
-
Check out the LR_LOADMAP3DCOLORS flag for LoadImage. It will change the following colours RGB(128,128,128), RGB(192,192,192), and RGB(223,223,223) to the current system colours COLOR_3DSHADOW, COLOR_3DFACE, and COLOR_3DLIGHT respectively. You'll need to do this whenever your applications receives WMW_SYSCOLORCHANGE too. PeterRitchie.com