PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: WS_EX_SMALLCAPTION Quirk  (Read 1005 times)

David Martin

  • Guest
WS_EX_SMALLCAPTION Quirk
« on: April 04, 2004, 05:20: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
Logged

TechSupport

  • Guest
WS_EX_SMALLCAPTION Quirk
« Reply #1 on: April 04, 2004, 05:46:11 PM »

In the designer, or at run-time?
Logged

David Martin

  • Guest
WS_EX_SMALLCAPTION Quirk
« Reply #2 on: April 04, 2004, 05:51:05 PM »

Run-time
Logged

TechSupport

  • Guest
WS_EX_SMALLCAPTION Quirk
« Reply #3 on: April 04, 2004, 05:57: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.
Logged

George Bleck

  • Guest
WS_EX_SMALLCAPTION Quirk
« Reply #4 on: April 04, 2004, 09:29: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.
Logged