Flaxie
2007-06-25 08:06:00 UTC
Hi
Win32 api, how can I remove button's bold border (highlight?) by code.
How do I set highlight area on button:
* I press left mouse-button down on win32 application button
* I move cursor outside of win32 application button
* I release left mouse-button
-> Button will be focused, and it will have bold border (probably highlight)
I can remove focus, just that I use: SetFocus(AnyOtherHWND);
But this SetFocus(); doesn't remove bold border on win32 application button.
I have tried:
SendMessage(buttonHWND, BM_SETSTATE, 0,0);
SendMessage(buttonHWND, WM_KILLFOCUS, 0,0);
.... and some others, but I have failed to remove that bold border on button.
Win32 api, how can I remove button's bold border (highlight?) by code.
How do I set highlight area on button:
* I press left mouse-button down on win32 application button
* I move cursor outside of win32 application button
* I release left mouse-button
-> Button will be focused, and it will have bold border (probably highlight)
I can remove focus, just that I use: SetFocus(AnyOtherHWND);
But this SetFocus(); doesn't remove bold border on win32 application button.
I have tried:
SendMessage(buttonHWND, BM_SETSTATE, 0,0);
SendMessage(buttonHWND, WM_KILLFOCUS, 0,0);
.... and some others, but I have failed to remove that bold border on button.