So I am trying to move another application to a second screen and then I want to set it full screen in C++.
I have the HWND handle from the application from a list of processes and then I can set the position from the window where I want with MoveWindow. This works perfectly.
Is there a similar way to set the application to full screen? I can only seem to find info about setting your own application to full screen. But in this case I want to be able to move any application I want and set it to full screen. (As far as this is possible, but for the purpose I need it it should be)
If I press Alt+Enter on the window after moving it, it does exactly what I want. So I hope I can do that from code?
EDIT: BTW I tried ShowWindow(windowToMove, SHOW_FULLSCREEN); But it seems to maximize it but it is not similar to ALT+ENTER.
Thanks for any help in advance!