Click here to Skip to main content
16,015,050 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can we delete CFont object in Onintdialog()? Pin
Cedric Moonen19-May-08 22:18
Cedric Moonen19-May-08 22:18 
AnswerRe: can we delete CFont object in Onintdialog()? Pin
Rajesh R Subramanian19-May-08 22:18
professionalRajesh R Subramanian19-May-08 22:18 
GeneralRe: can we delete CFont object in Onintdialog()? Pin
Super Hornet19-May-08 22:29
Super Hornet19-May-08 22:29 
GeneralRe: can we delete CFont object in Onintdialog()? Pin
Rajesh R Subramanian19-May-08 22:34
professionalRajesh R Subramanian19-May-08 22:34 
GeneralRe: can we delete CFont object in Onintdialog()? Pin
Super Hornet19-May-08 22:41
Super Hornet19-May-08 22:41 
QuestionRe: can we delete CFont object in Onintdialog()? Pin
CPallini19-May-08 22:51
mveCPallini19-May-08 22:51 
AnswerRe: can we delete CFont object in Onintdialog()? Pin
Rajesh R Subramanian19-May-08 22:51
professionalRajesh R Subramanian19-May-08 22:51 
QuestionRe: can we delete CFont object in Onintdialog()? Pin
Rajesh R Subramanian19-May-08 22:58
professionalRajesh R Subramanian19-May-08 22:58 
Super Hornet wrote:
But the article refered by cedric clearly tells we shouldn't delete.


From the article:
Do not destroy the specified CFont object until after the CWnd control has been destroyed. Windows does not copy the font specified in a SetFont() call. If the font is destroyed before the control is destroyed, unpredictable results can occur.

Well, you wouldn't want the program to work only your computer, but not on the client's. You wouldn't want your program to behave in an unpredictable manner, do you? Smile | :)


Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP

AnswerRe: can we delete CFont object in Onintdialog()? Pin
Super Hornet19-May-08 23:13
Super Hornet19-May-08 23:13 
GeneralRe: can we delete CFont object in Onintdialog()? Pin
Rajesh R Subramanian19-May-08 23:46
professionalRajesh R Subramanian19-May-08 23:46 
Questionmemory leak in CADORecordset? Pin
tuxyboy19-May-08 20:48
tuxyboy19-May-08 20:48 
AnswerRe: memory leak in CADORecordset? [modified] Pin
prasad_som19-May-08 23:28
prasad_som19-May-08 23:28 
GeneralRe: memory leak in CADORecordset? Pin
tuxyboy20-May-08 0:08
tuxyboy20-May-08 0:08 
AnswerRe: memory leak in CADORecordset? Pin
prasad_som20-May-08 0:49
prasad_som20-May-08 0:49 
GeneralRe: memory leak in CADORecordset? Pin
tuxyboy20-May-08 2:01
tuxyboy20-May-08 2:01 
QuestionHow can I remove a member from the Administrators group ? Pin
SherTeks19-May-08 20:44
SherTeks19-May-08 20:44 
AnswerRe: How can I remove a member from the Administrators group ? Pin
SherTeks21-May-08 18:14
SherTeks21-May-08 18:14 
QuestionCommad Line App Pin
Ajay L D19-May-08 20:24
Ajay L D19-May-08 20:24 
AnswerRe: Commad Line App Pin
Vijjuuu.19-May-08 20:44
Vijjuuu.19-May-08 20:44 
GeneralRe: Commad Line App Pin
Ajay L D19-May-08 20:53
Ajay L D19-May-08 20:53 
QuestionMay be what you need is something else. Pin
Rajesh R Subramanian19-May-08 21:24
professionalRajesh R Subramanian19-May-08 21:24 
AnswerRe: Commad Line App Pin
Rajkumar R19-May-08 21:25
Rajkumar R19-May-08 21:25 
QuestionRe: Commad Line App Pin
Rajkumar R19-May-08 22:25
Rajkumar R19-May-08 22:25 
AnswerRe: Commad Line App Pin
Rajkumar R19-May-08 22:22
Rajkumar R19-May-08 22:22 
GeneralRe: Commad Line App Pin
Rajesh R Subramanian19-May-08 22:25
professionalRajesh R Subramanian19-May-08 22:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.