05-26-2024, 04:14 PM
(This post was last modified: 05-29-2024, 04:07 PM by madscijr.
Edit Reason: removed unnecessary quoted text
)
BTW these two lines are key to setting up the Raw Input API window to line up with and match the size of the main program's window, and may even allow us to eliminate the 2nd program altogether, if we can get the hwnd window handle of our QB64PE main program and get the Raw Input to read its input from that:
Code: (Select All)
hwndMain = CreateWindowEx( _
0, _
MAKELPARAM(reg, 0), _
Offset(szWinTitle), _
WS_OVERLAPPEDWINDOW, _
0, _
0, _
1024, _
768, _
0, _
0, _
hInst, _
0)
If SetWindowPos(hwndMain, HWND_TOPMOST, 200, 200, 0, 0, SWP_NOSIZE Or SWP_NOACTIVATE) = 0 Then