Bold text in Listcontrol?
-
Hi, I have a SDI application with a listcontrol. Some fields must be in BOLD. I have tried something with LOGFONT, but when i try to get the current logfont?, Windows gives a error at the moment that the application starts.
gxListCtrl::gxListCtrl (CString Text) { ... LOGFONT lfFont; GetFont()->GetLogFont(&lfFont);
:confused: Regards, Willem -
Hi, I have a SDI application with a listcontrol. Some fields must be in BOLD. I have tried something with LOGFONT, but when i try to get the current logfont?, Windows gives a error at the moment that the application starts.
gxListCtrl::gxListCtrl (CString Text) { ... LOGFONT lfFont; GetFont()->GetLogFont(&lfFont);
:confused: Regards, Willem -
Hi, I have a SDI application with a listcontrol. Some fields must be in BOLD. I have tried something with LOGFONT, but when i try to get the current logfont?, Windows gives a error at the moment that the application starts.
gxListCtrl::gxListCtrl (CString Text) { ... LOGFONT lfFont; GetFont()->GetLogFont(&lfFont);
:confused: Regards, WillemGetFont()
doesn't return a valid value until the control is created. The earliest you can call theGetFont()
function is from the control'sOnCreate()
handler. Hope this helps, Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact" -
Hi, I have a SDI application with a listcontrol. Some fields must be in BOLD. I have tried something with LOGFONT, but when i try to get the current logfont?, Windows gives a error at the moment that the application starts.
gxListCtrl::gxListCtrl (CString Text) { ... LOGFONT lfFont; GetFont()->GetLogFont(&lfFont);
:confused: Regards, Willem