I added this as part of a larger change that stopped passing an HWND around in netwind.cpp. This broke the build for the screensaver because CMainFrame doesn't exist in the screensaver.
I have reverted back to using the win32 ::PostMessage on the main frame's HWND.