Replies: 1 comment
-
My fault! [Grrr!] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TCC has a builtin function to call DLL exports. Below, 6 is SW_MINIMIZE and 3 is SW_MAXIMIZE.
If I do this in a console (shwon normal), the console is minimized, then maximized.
echo %@winapi[user32.dll,ShowWindow,%_hwndcon,6] & delay 1 & echo %@winapi[user32.dll,ShowWindow,%_hwndcon,3]
If I do the same thing in WT (shown normal), WT is minimized but restored normal (i.e., not maximized).
echo %@winapi[user32.dll,ShowWindow,%_hwndwt,6] & delay 1 & echo %@winapi[user32.dll,ShowWindow,%_hwndwt,3]
I get the same results doing those tests with my own code (wrapping ShowWindow). In both cases, all 4 ShowWindow calls return 24 (TRUE).
ShowWindow with SW_MAXIMIZE does work if WT is not minimized.
What's up with that?
Beta Was this translation helpful? Give feedback.
All reactions