15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Change font in CPropertySheet

Chen Ming -- cm@ocrserv.ee.tsinghua.edu.cn
Wednesday, September 11, 1996

Environment: MSVC 4.0, Chinese Windows 95 

Hi, all: 

In my application, I defined the font in all dialogs as SYSTEM font. But I
found that PropertySheet will always change the font to a predefined one, no
matter which font I defined in PropertyPage. So it will be shown different
to other dialogs in my app. Can I work around it?

Chen Ming




MICHAEL@datatree.com
Wednesday, September 11, 1996

[Mini-digest: 2 responses]

Michael says...

I also posted a question about changing the font
of a Property Sheet.

Although I haven't had a chance to tes this, here's the
reply from  "Quang Ngo"  on August 24th.
----------------------------------------------------------------------------
---------------
class CMyPropertySheet : public CPropertySheet
	{
private:
	HFONT m_hFont;
	...
	}

CMyPropertySheet::OnInitDialog(...)
	{
	m_hFont = ::CreateFont(...);
	...
	SetFont(CFont::FromHandle(m_hFont));
	...
	}
--------------------------------------------------------------------------------
Chen says...

>Environment: MSVC 4.0, Chinese Windows 95 
>
>In my application, I defined the font in all dialogs as SYSTEM font. But I
>found that PropertySheet will always change the font to a predefined one, no
>matter which font I defined in PropertyPage. So it will be shown different
>to other dialogs in my app. Can I work around it?
>
Michael Thal           michael@datatree.com
Data Tree Corp.     http://www.datatree.com

-----From: "Dan Kirby" 

See article http://www.microsoft.com/kb/developr/visual_c/q142170.htm in
the Microsoft Developer Knowledgebase for a sample of change the fonts of a
propertypage to something other than the system font.

--dan




| Вернуться в корень Архива |