Click to See Complete Forum and Search --> : Font doesn't change in OnInitDialog.


Franky Braem
May 21st, 1999, 04:33 AM
Hi,

I'm writing a dialog box and I want to change the font of one of my static controls. When I change the font in the OnInitDialog it doesn't change immediately. It changes when I select control on my dialogbox.
What am I doing wrong ?

leolin@
May 21st, 1999, 04:38 AM
Do you define your CFont or Font
variable as local (in .H)? if you define as
automatic varible (in your function)
.somtime will fail