I was wondering, do I need to call DeleteObject in the following case?
CFont* oldFont = label.GetFont(); LOGFONT oldLogFont; oldFont->GetLogFont(&oldLogFont); oldLogFont.lfWeight = FW_BOLD; CFont newFont; newFont.CreateFontIndirectW(&oldLogFont); label.SetFont(&newFont, true);
Thanks.
source share