Re: How does Windows determine the height of a combo box?
From: Jeff Partch [MVP] (jeffp_at_mvps.org)
Date: 02/06/05
- Next message: Stefan: "How do I stop a dialog box from being activated?"
- Previous message: Morten Aune Lyrstad: "How does Windows determine the height of a combo box?"
- In reply to: Morten Aune Lyrstad: "How does Windows determine the height of a combo box?"
- Next in thread: Morten Aune Lyrstad: "Re: How does Windows determine the height of a combo box?"
- Reply: Morten Aune Lyrstad: "Re: How does Windows determine the height of a combo box?"
- Reply: Steve Alpert: "Re: How does Windows determine the height of a combo box?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 6 Feb 2005 04:39:15 -0600
"Morten Aune Lyrstad" <wants@nospam.all> wrote in message
news:hclNd.7421$Sl3.178366@news4.e.nsc.no...
> Hi! I need to determine the height of a combo box before actually
> creating it. How does Windows determine how tall the combo box will be?
I think it's something like the height of a representative (uppercase, full
staff, no over/underhang) character obtained via GetTextExtentPoint -- with
the current WM_GETFONT selected into the HDC, and
2*GetSystemMetrics(SM_CYFIXEDFRAME) and 1*GetSystemMetrics(SM_CYEDGE) added
to it. Of course, XP themes or an ownerdraw style will no doubt complicate
things.
-- Jeff Partch [VC++ MVP]
- Next message: Stefan: "How do I stop a dialog box from being activated?"
- Previous message: Morten Aune Lyrstad: "How does Windows determine the height of a combo box?"
- In reply to: Morten Aune Lyrstad: "How does Windows determine the height of a combo box?"
- Next in thread: Morten Aune Lyrstad: "Re: How does Windows determine the height of a combo box?"
- Reply: Morten Aune Lyrstad: "Re: How does Windows determine the height of a combo box?"
- Reply: Steve Alpert: "Re: How does Windows determine the height of a combo box?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|