I create a modeless dialog in a window,and I overload the function "OnPaint".
At begin it works correctly.However,when I create this dialog ,the dialog abruptly repaint itself endlessly,(I use debug to confirm it) and the cpu's usage is 100%.So I can't do anything!How can I avoid this thing? Thanks a lot!