i have these on my image class:
- the imgBrush it's a HBRUSH object;Code:void Brush(COLORREF BrushColor) { if(DeleteBrush(imgBrush)==FALSE) DebugText("brush color not deleted"); imgBrush=CreateSolidBrush(BrushColor); //DeleteBrush(BrushColor); }
- the imgBrush isn't selected to any HDC.
so why i can't delete it?