Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generallogging method arguments Pin
Brian van der Beek22-Jun-01 4:24
Brian van der Beek22-Jun-01 4:24 
GeneralRe: logging method arguments Pin
Tomasz Sowinski22-Jun-01 4:34
Tomasz Sowinski22-Jun-01 4:34 
GeneralRe: logging method arguments Pin
Brian van der Beek23-Jun-01 22:52
Brian van der Beek23-Jun-01 22:52 
GeneralRe: logging method arguments Pin
Tomasz Sowinski25-Jun-01 2:00
Tomasz Sowinski25-Jun-01 2:00 
GeneralRe: logging method arguments Pin
Brian van der Beek25-Jun-01 11:33
Brian van der Beek25-Jun-01 11:33 
GeneralRe: logging method arguments Pin
Tomasz Sowinski26-Jun-01 0:37
Tomasz Sowinski26-Jun-01 0:37 
GeneralProcess viewer Pin
22-Jun-01 4:24
suss22-Jun-01 4:24 
GeneralChanging font in CListbox! Pin
22-Jun-01 4:21
suss22-Jun-01 4:21 
Hello folks!

I'm a beginner in MFC and I've got a small problem - at least I hope so Smile | :)

I'm trying to change the font in a listbox and to do that I used the following code:

void CSimaskra2View::OnInitialUpdate()
...
CFont font;
font.CreatePointFont(8, _T("Arial"), NULL);
m_listi.SetFont(&font);
...

The only thing that happens is that the font changes (no problems there) but the result is some default, ugly font (NOT Arial)! It doesn't matter if I change to Times New Roman, or if I change the size, I always get the same font!
If I erase the m_listi.SetFont(&font); I get the "wonderful" default font of Windows again Wink | ;)

Please help me .. I need it


thatman
GeneralRe: Changing font in CListbox! Pin
Tomasz Sowinski22-Jun-01 4:30
Tomasz Sowinski22-Jun-01 4:30 
Generalemail link Pin
Monka22-Jun-01 4:12
Monka22-Jun-01 4:12 
GeneralRe: email link Pin
J Patel22-Jun-01 8:18
J Patel22-Jun-01 8:18 
GeneralRe: email link Pin
Ben Burnett22-Jun-01 8:24
Ben Burnett22-Jun-01 8:24 
Generaldialog templates in memory for a wizard Pin
giorgos22-Jun-01 4:03
giorgos22-Jun-01 4:03 
GeneralSwitching views in a splitter pane Pin
Malcolm McMahon22-Jun-01 3:24
Malcolm McMahon22-Jun-01 3:24 
GeneralRe: Switching views in a splitter pane Pin
Tomasz Sowinski22-Jun-01 4:13
Tomasz Sowinski22-Jun-01 4:13 
GeneralRe: Switching views in a splitter pane Pin
Malcolm McMahon22-Jun-01 5:12
Malcolm McMahon22-Jun-01 5:12 
GeneralRe: Switching views in a splitter pane Pin
Tomasz Sowinski22-Jun-01 5:16
Tomasz Sowinski22-Jun-01 5:16 
GeneralRe: Switching views in a splitter pane Pin
22-Jun-01 4:22
suss22-Jun-01 4:22 
GeneralRe: Switching views in a splitter pane Pin
Malcolm McMahon22-Jun-01 5:46
Malcolm McMahon22-Jun-01 5:46 
GeneralConfusing code Pin
Rejeesh22-Jun-01 2:16
Rejeesh22-Jun-01 2:16 
GeneralRe: Confusing code Pin
Tomasz Sowinski22-Jun-01 2:39
Tomasz Sowinski22-Jun-01 2:39 
GeneralRe: Confusing code Pin
Rejeesh22-Jun-01 5:04
Rejeesh22-Jun-01 5:04 
GeneralCRichEditCtrl onthe Fly Pin
sankar22-Jun-01 1:30
sankar22-Jun-01 1:30 
GeneralRe: CRichEditCtrl onthe Fly Pin
Tomasz Sowinski22-Jun-01 1:58
Tomasz Sowinski22-Jun-01 1:58 
GeneralShowing modeless forms in VB DLLs called from MFC Pin
22-Jun-01 1:17
suss22-Jun-01 1:17 

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.