Re: funny working ListBox or a bug in VS 6.0 ?
From: David Lowndes (davidl_at_example.invalid)
Date: 06/01/04
- Next message: priyamjm: "Re: How to debug a dll in a remote machine?"
- Previous message: priyamjm: "Re: How to Send/Receive Intensive Data?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 01 Jun 2004 15:30:50 +0100
>!!!!!!!!! BUT !!!!!!!!!
>If I set that font right in my ListBox and want to have the text added with code :
>
>List->SetFont( font, TRUE);
>List->AddString( "some other text" );
>
>in the chosen charset, then it DOES NOT work !
>However the added text has the other parameters of the chosen font ( Height and so on) but the charset is the original (standard) one
The symptoms you describe typically happen when you've destroyed the
font - the font needs to exist for the lifetime it's used, which
generally means that you need to have the CFont object as a member
variable of the dialog that uses the listbox control.
Dave
- Next message: priyamjm: "Re: How to debug a dll in a remote machine?"
- Previous message: priyamjm: "Re: How to Send/Receive Intensive Data?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|