I am using gdi+ and c++. I have a question about SolidBrush. How To clone a SolidBrush?
SolidBrush* oldBrush xxx;
Brush* newBrush = oldBrush->Clone();
I found newBrush is a Brush Object.
Which mean if I use dynamic_cast<SolidBrush>(newBursh)
, I will always get NULL.
I read the .h file of gdi+ SolidBrush seems used Brush's virtual Clone method, it do not override it!
Why?
Thanks for solutions, but I still have a question? why SolidBrush do not implement Clone Method?