开发者

Need GDI programming Guideline

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜