good morning everybody!

in my about dialog i need to draw a string dynamically on a bitmap (static control).

to achieve this, i created a WM_PAINT handler for that dialog and in it i draw the string...

so problem is, whenever the WM_PAINT handler is there, regardless if anything is done in it, even if it has an empty body, the cpu usage rises to 100%.

and after a few seconds i get a i/o exception.

i spy(ed)++ the dialog, and if there is a handler for WM_PAINT it will recieve thousands of WM_PAINT msgs.

i don't get what i'm doing wrong... can't i implement a WM_PAINT handler in a dialog?
and if no, how can i draw my string in an other way?