Hi,
I'm writing a program that updates the client area (fills it with a new color) at each WM_MOUSEMOVE.
I use CreateSolidBrush, fill the area, then duly DeleteObject the brush, but still it doesn't work - after a few hundred mousemoves the brush turns white and stays white -- my guess GDI runs out of handles of something.
What's the problem? I delete the brush immediately after creating it.
I'm writing a program that updates the client area (fills it with a new color) at each WM_MOUSEMOVE.
I use CreateSolidBrush, fill the area, then duly DeleteObject the brush, but still it doesn't work - after a few hundred mousemoves the brush turns white and stays white -- my guess GDI runs out of handles of something.
What's the problem? I delete the brush immediately after creating it.