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.
精彩评论