Scalabium Software |
|
Knowledge for your independence'. | |
Home Delphi and C++Builder tips |
#52: How can I get the sizes of some system controls? |
|
Sometimes in run-time you must detect the sizes of some system controls. For example, width of scrollbar or height of form caption etc. If you want to get this system value, you must call the Windows API's function GetSystemMetrics with different parameter. In result you'll get the wished. For example, intFormCaptionHeight := GetSystemMetrics(SM_CYCAPTION) As result, you in intFormCaptionHeight you have a height of normal caption area in pixels. The full list of wished system metrics you can view in Windows API's help by GetSystemMetrics topic. The some useful metrics:
|
|
Copyright© 1998-2024, Scalabium
Software. All rights reserved. |