Click to See Complete Forum and Search --> : system color
drick
April 27th, 2007, 03:38 PM
HI,
I try tu make ownerdraw menu like office XP menu.
In selected menu, the tally color is the system color "COLOR_HIGHLIGHT"
how make windows to determine the filling color in a selected menu ?
thank you very much
regards
kirants
April 27th, 2007, 04:16 PM
Not clear. Are you interested in knowing what color the system is set to for highlight ?
Have you explored GetSysColor
drick
April 27th, 2007, 04:35 PM
for exemple, u can see this screen capture of selected item in a menu
http://drick.chez-alice.fr/test.JPG
I do SetSysColors of COLOR_HIGHLIGHT to set it to purpel.
How is determined the filling colors of the rect ?
first, I thought, that was a higher luminance, but not !
an idea ?
kirants
April 28th, 2007, 10:52 AM
Am sorry, I really don't understand your question. Please elaborate on what your requirements are, and what you are observing with the current implementation and what is wrong about it.
Requirements : ?
Current implementation and observation ?
This is what is wrong in the current observation ? Please point out the mistake
This is what I would like to see instead ? Desired behavior.
In any case, any reason you are choosing to call SetSysColors. Note that, this will impact all applications for that user and not just your appplication. Is that intended ?
codeguru.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.