diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-11 12:40:09 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-11 12:40:09 -0400 |
| commit | a34fe03eef9cfd5311230a67fd45d821ab4999ff (patch) | |
| tree | 75a98b58969d8931c37ecf8c1fba87835a7c6092 /new/initparent_windows.c | |
| parent | 812b70f6f06d89d9294c2d1739df4acffd02a84f (diff) | |
Decided to disable the initial parent window on Windows. If this causes problems, I can re-enable it later. More TODOs.
Diffstat (limited to 'new/initparent_windows.c')
| -rw-r--r-- | new/initparent_windows.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/new/initparent_windows.c b/new/initparent_windows.c index 9f115c1..dc7524b 100644 --- a/new/initparent_windows.c +++ b/new/initparent_windows.c @@ -2,7 +2,7 @@ #include "uipriv_windows.h" // for maximum safety, all controls that don't have a parent are made children of this, the "initial parent" -// it behaves like other containers due to bugs described in container_windows.c, but is never seen and cannot be interacted with by end users +// it behaves like other containers due to bugs described in container_windows.c, but is never seen, is disabled, and cannot be interacted with by end users // despite being called the initial parent, it is used whenever a control has no parent, even if it loses its parent at some later point during the execution of the program #define uiInitialParentClass L"uiInitialParentClass" @@ -41,6 +41,8 @@ const char *initInitialParent(HICON hDefaultIcon, HCURSOR hDefaultCursor) if (initialParent == NULL) return "creating initial parent window"; - // TODO disable? + // just to be safe, disable the initial parent so it can't be interacted with accidentally + // if this causes issues for our controls, we can remove it + EnableWindow(initialParent, FALSE); return NULL; } |
