How to Change the Blue Selection Color in Edit Control
-
Hi Everybody, I want to change the color of selecting text in an edit control and I ran out of ideas. I am totally confused, please anyone guide. It is a WIN32 C++ Application.
Regards, Vishal
That's a Windows setting. You can change it via code, but that may end up irritating the user. In any case, see
SetSysColors()
andCOLOR_HIGHLIGHT
."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
That's a Windows setting. You can change it via code, but that may end up irritating the user. In any case, see
SetSysColors()
andCOLOR_HIGHLIGHT
."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
SetSysColors() works, but it had changed the default COLOR_HIGHLIGHT color to BLACK, I had used RGB(0,0,0) This function changes the global highlight color, I want to change highlight color of my edit control only. How to achieve this.
Regards, Vishal
vishalgpt wrote:
I want to change highlight color of my edit control only.
How to achieve this.Custom control.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
vishalgpt wrote:
I want to change highlight color of my edit control only.
How to achieve this.Custom control.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous