Reputation: 41845
I used UpdateLayeredWindow to draw a window which use png as background. But this window contain some self-draw buttons which would change when user hover/click these buttons and then the window should change.
Now the problem is when should I call UpdateLayeredWindow. Shoud I call UpdateLayeredWindow after the user changed the button apperance, that is when user hover the mouse above the buttons or clicked the buttons?
Upvotes: 1
Views: 413
Reputation: 41845
When need to update the layeredwindow, call UpdateLayeredWindow, but be really careful with this.
Call it too frequently do cause performance problem, its not WM_PAINT which could combine to one if there is too much in the message queue. UpdateLayeredWindow do not...
Upvotes: 1