ByB
2005-05-12 10:32:09 UTC
Hello,
I'm trying to change the size of the font used to display data in a
CListCtrl control, and using for it the method found here :
http://www.codeguru.com/Cpp/G-M/gdi/fonthandlinganddetection/article.php/c155/
However, each time I call the CreateFontIndirect() method, everything
compiles well, but I get an error at running.
The error is about a "Debug Assertion failed" provocking a "Breakpoint
exception" (but I have no breakpoints set) .
Apparently, the pb is in the wingdi.c file (from the MFC ?) when
calling an Attach() or Detach() method in an hObject ...
I do not understand well hat is the problem, even when checking the
CreateFontIndirect() page in MSDN ...
Should I set a particular property in the CListCtrl control to allow
changing the font ? Or is the problem completely different ?
Thank you for any hint, as I am something new at fonts managing.
I'm trying to change the size of the font used to display data in a
CListCtrl control, and using for it the method found here :
http://www.codeguru.com/Cpp/G-M/gdi/fonthandlinganddetection/article.php/c155/
However, each time I call the CreateFontIndirect() method, everything
compiles well, but I get an error at running.
The error is about a "Debug Assertion failed" provocking a "Breakpoint
exception" (but I have no breakpoints set) .
Apparently, the pb is in the wingdi.c file (from the MFC ?) when
calling an Attach() or Detach() method in an hObject ...
I do not understand well hat is the problem, even when checking the
CreateFontIndirect() page in MSDN ...
Should I set a particular property in the CListCtrl control to allow
changing the font ? Or is the problem completely different ?
Thank you for any hint, as I am something new at fonts managing.
--
Ceci est une signature automatique de MesNews.
Site : http://www.mesnews.net
Ceci est une signature automatique de MesNews.
Site : http://www.mesnews.net