PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: David Martin on April 04, 2004, 05:50:02 PM

Title: WS_EX_SMALLCAPTION Quirk
Post by: David Martin on April 04, 2004, 05:50:02 PM
If you choose the WS_EX_SMALLCAPTION attribute for a form it makes the caption small but it also adds space to the bottom of the form.

David
Title: WS_EX_SMALLCAPTION Quirk
Post by: TechSupport on April 04, 2004, 06:16:11 PM
In the designer, or at run-time?
Title: WS_EX_SMALLCAPTION Quirk
Post by: David Martin on April 04, 2004, 06:21:05 PM
Run-time
Title: WS_EX_SMALLCAPTION Quirk
Post by: TechSupport on April 04, 2004, 06:27:16 PM
I guess you mean that all all the controls on the form move up slightly causing a small space to appear at the bottom. This is because the caption height at runtime is smaller than at design time. I will have to look into this one closer to see if there is a good solution.
Title: WS_EX_SMALLCAPTION Quirk
Post by: George Bleck on April 04, 2004, 09:59:54 PM
You know, I noticed this too using WS_EX_TOOLWINDOW (same constant) but thought it was just my eyes.   :shock:

GetClientRect grows by "3" when WS_EX_TOOLWINDOW is used.

GetWindowRect stays the same.

This indicates the client area gew to compensate for the shortened height of the titlebar.