dbach
17th October 2008 08:34 UTC
Ask System for current DialogColor, FontName, FontSize ??
Hi there,
we need some settings of our current platform. We need the DialogColor, the FontName and the FontSize. We tried to search these values in the registry but failed.
We also started with System::Call commands but after 3 hours we surrendered.
Is there a pro which can tell us how to get these values? We want to build a webpage with the current systemsettings (Font,Size,ColorOfBackground)?
Thanks you very much.
Best regards,
dbach
dbach
17th October 2008 09:22 UTC
We found out that we need to use GetStockObject (gdi32) but we don't know how to call it to get the var.
http://msdn.microsoft.com/en-us/library/ms533223(VS.85).aspx
Any ideas?
Anders
17th October 2008 11:35 UTC
System::Call "gdi32::GetStockObject(i SomeNumberHere)i.r0
...but, GetStockObject is the wrong way to do this, to get a color you call GetSysColor or GetSysColorBrush. To get the font, you call SystemParametersInfo with NONCLIENTMETRICS