cubic77
asked on
How do I get the size of the window elements?
How do I get the size of the window border (left/right/bottom)?
How do I get the height of application's main menu?
(Delphi 7, Win XP, Win 7)
How do I get the height of application's main menu?
(Delphi 7, Win XP, Win 7)
ASKER
> For windows with 3D look use:
So normal windows in Win 7 have 3D look?
What about Win XP?
Or normal/3D look is dictated by the themes (enabled/disable)?
So normal windows in Win 7 have 3D look?
What about Win XP?
Or normal/3D look is dictated by the themes (enabled/disable)?
ASKER
Nope.
The SM_CYEDGE and SM_CYBORDER is not working.
They return 1 and 2 pixels while the border/frame around my windows (standard Win 7 with Aero interface) is 7.
The SM_CYEDGE and SM_CYBORDER is not working.
They return 1 and 2 pixels while the border/frame around my windows (standard Win 7 with Aero interface) is 7.
ASKER
I think what I needed was SM_CYSIZEFRAME.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Height, in pixels, of a single-line menu bar:
GetSystemMetrics(SM_CYMENU
Same function with
SM_CXBORDER, SM_CYBORDER
Width and height, in pixels, of a window border
For windows with 3D look use:
SM_CXEDGE, SM_CYEDGE