Link to home
Start Free TrialLog in
Avatar of rickatseasoft
rickatseasoft

asked on

Cleanup after dynamically created CStatic

I've created a CStatic using

CStatic m_StaticMyWin;
m_StaticMyWin.Create(...

I also do a
CFont *pFont=m_StaticSomeOther.GetFont();
m_StaticMyWin.SetFont(pFont);

When I am done with this dialog, do I need to do anything to clean up behind this CStatic, or will falling out of scope be enough.

Thanks, Rick
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial