Herve,
You can use the same API calls to get the handle to the font in .NET
(through the P/Invoke layer). Once you do that, you can create a Font
object by calling the static FromHfont method on the Font class, passing the
handle to the font.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Herve Bocuse" <gd******@gmail.com> wrote in message
news:cp**********@dns3.cae.ca...
Hi,
In C++ I was used to this code to get a GUI system font :
LOGFONT lf;
::SystemParametersInfo(SPI_GETICONTITLELOGFONT,siz eof(LOGFONT),&lf,0);
HFONT hFont = ::CreateFontIndirect(&lf);
How can I get such a font in C# ?
Thank you
Herve