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