Basically now I am loading bitmap on a button as of four states as follows:
cases:
In the case4
I want to load one more bitmap when the button control gets the rectangular focus and should load another bitmap if once the button looses the focus.
I googled for long time and I did not get any clue to resolve this issue.
Initially, when I run my application it as follows:
Once when I click Tab
the rectangular selection moves on to the button. Now, when the button control receives that rectangular focus I have to load a bitmap and when the button leaves focus I need to load another bitmap.
After Tab
click
As for mouse hovering we have BCN_HOTITEMCHANGE event which get triggered and we can handle mouse entering and leaving. Similar to this do we have any which gets triggered when it receives are looses the focus?
Can anyone please help me to resolve this issue.
To be honest I'm not entirely sure what you're trying to do. But if the button has the BS_NOTIFY
window style set, its parent window will get a WM_COMMAND
message with the HIWORD set to BN_SETFOCUS
when the button gains focus, and BN_KILLFOCUS
when it loses it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.