port: MSWindow/MSApplication verbatim over a winuser.h shim (Win32User.cpp)
Host-side window records + message queue; WM_SIZE/WM_MOVE/WM_DESTROY sent synchronously as Win32 does; PostQuitMessage also queues WM_QUIT. 64-bit pointer casts ADAPTED. port.ms_window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
80c5a1e39f
commit
5d64311a4d
@@ -1084,9 +1084,10 @@ void Stop()
|
||||
|
||||
}
|
||||
|
||||
// winuser.h (declared in the port's windows.h shim). WM_QUIT ends 40250's CPythonApplication::Loop;
|
||||
// here the script fiber's loop ends the same way.
|
||||
void PostQuitMessage(int)
|
||||
// winuser.h (common/shim/win32/winuser.h). WM_QUIT ends 40250's CPythonApplication::Loop; here the script
|
||||
// fiber's loop ends the same way. The WM_QUIT is also queued for a GetMessage loop (CMSApplication).
|
||||
void PostQuitMessage(int nExitCode)
|
||||
{
|
||||
PostMessage(NULL, WM_QUIT, WPARAM(nExitCode), 0);
|
||||
PythonBoot::AppRequestQuit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user