• Welcome to PlanetSquires Forums.
 

WS_EX_SMALLCAPTION Quirk

Started by David Martin, April 04, 2004, 05:20:02 PM

Previous topic - Next topic

David Martin

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

TechSupport

In the designer, or at run-time?

David Martin


TechSupport

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.

George Bleck

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.