I need to pint several parts of a picture box with different colors.
I'm using the ExtFloodFill function.
The question is, do I have to create a new brush every time I need to change the color?
For example, Combo3 has a few colors:
Is this correct?VB Code:
Private Sub Combo3_Click() crNewColor = Combo3.List(Combo3.ListIndex) DeleteObject mBrush mBrush = CreateSolidBrush(crNewColor) SelectObject Picture1.hDC, mBrush End Sub
Is there any better way?


Reply With Quote