开发者

Need GDI programming Guideline

开发者 https://www.devze.com 2022-12-26 17:51 出处:网络
I want to change my window design rapidly. I have OnPaint function which I am calling when WM_PAINT message received. The design change only when th开发者_运维技巧e event occure. I want that design sh

I want to change my window design rapidly. I have OnPaint function which I am calling when WM_PAINT message received. The design change only when th开发者_运维技巧e event occure. I want that design should automatically update doesn't depend on event kindly guide me how can I make it possible.


All drawing code should be placed in WM_PAINT message handler or called from it. Your current code is OK. When window should be redrawn as result of some event, just call Invalidate() or UpdateWindow(), this is indirect call to WM_PAINT message handler.

0

精彩评论

暂无评论...
验证码 换一张
取 消