Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to set font of Wizard to match font of dialogs?

8 views
Skip to first unread message

Rob Goodridge

unread,
Jan 22, 1998, 3:00:00 AM1/22/98
to

I am using the Win32 Property Sheet control to create a Wizard. The
dialogs I am putting on the Wizard have a FONT statement. I can vary
the size of this font and the Wizard still retains a particular size
and does not change size as the dialogs change size. This size is set
when the Wizard is first created. It seems to be based on the default
font as the size of the Wizard is perfect when I remove the FONT
statement or change the FONT statement to be the default font.

The result of this anomaly is that if the font is smaller than the
default font, a chunk of white space is displayed to the right of
every dialog. This creates a dialog that is too large to be displayed
on a VGA screen.

I have sent a WM_SETFONT message to the window, after it has been
created, of course. This makes no difference at all.

Does anyone know how to set the font of the Wizard to match the font
of the dialogs?

Or am I completely off track and this is not a font issue?

TIA

(My return address is intentionally invalid to foil spammers. Delete the
part that says delete me in order to get my real address.
I do this on my own time with my own money;
my responses are not to be considered official technical support or advice.)

Girish Bharadwaj [MVP]

unread,
Jan 22, 1998, 3:00:00 AM1/22/98
to

The problem is that the property sheets use System font to show their
sheets. Its by design.:-) So, you need to do some hacking..There is a
sample for MFC applications to change the fonts of their property
sheets.You might be able to change it to work for a plain win32 app.(or
not)
The KB article which talks about this is "SAMPLE: PRPFONT - How to Set
CPropertySheet Fonts" Article ID: Q142170.

--
Girish Bharadwaj [VC++/MVP]
http://members.tripod.com/~GBharadwaj/index.html
Email :gir...@usa.net

0 new messages