Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

Fonts Sample (C++)

This sample illustrates working with fonts.

This is not an executable sample, so a complete project is not provided. These statements are intended to show the syntax used.

ISftDirectoryPtr vDir1 = m_Dir1.GetControlUnknown();
IFontDispPtr pFontDisp = vDir1->GetFont();
IFontPtr pFont = pFontDisp;
pFont->put_Name(L"Times New Roman");
CY sz;
sz.int64 = 10000L*12;
pFont->put_Size(sz);

Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.