| View previous topic :: View next topic |
| Author |
Message |
Mythos
Joined: 29 Jan 2005 Posts: 22
|
Posted: Tue Feb 01, 2005 8:34 am Post subject: Find out if close button in titlebar is enabled? |
|
|
How can I find out if the close button in the titlebar is enabled or not?
there is nothing like ...
| Code: |
If ( style & 0x20000 ) ; WS_MINIMIZEBOX
{}
|
... for the close button!? |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Tue Feb 01, 2005 9:26 am Post subject: |
|
|
| Quote: | | How can I find out if the close button in the titlebar is enabled or not? | And then ?
| Quote: | Control [v1.0.09+]
--------------------------------------------------------------------------------
Makes a variety of changes to a control.
Control, Cmd [, Value, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
Enable: Enables a control if it was previously disabled.
Disable: Disables or "grays out" a control. |
|
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Tue Feb 01, 2005 1:06 pm Post subject: |
|
|
I'm not sure if there's a way to detect this. You might try checking for the WS_SYSMENU and WS_CAPTION styles. But that probably won't work if the close button is "grayed out".
You could try PixelGetColor to detect a "grayed out" close button. |
|
| Back to top |
|
 |
|