Problem:
When I use the SetWindowPos function to change the size of the form, if the form size is larger than the screen resolution, it seems that parts of the form outside the screen area are not being rendered at all.
For example, if the user's screen resolution is set to 800x600, after using the provided code, the form does not resize to 900x800 as intended. Instead, 100 pixels are not rendered from one side and 200 pixels from the other side of the form.
Code:
Here is the NSIS code I am using:
System::Call 'user32::SetWindowPos(i$HWNDPARENT,i,i,i,i 900,i 800,i 0x16)'
Issue I Am Facing:
1-Part of the Form Not Rendering: When I set the form size to be larger than the screen resolution, it appears that parts of the form outside the display area are not being rendered at all.
2-Size and Position Settings: Even though I am using SetWindowPos and ensuring that the parameters are set correctly, the issue persists.
Question:
Is there a solution to ensure that all parts of the form, even those outside the visible screen area, are rendered correctly? Should I change any specific settings or parameters in NSIS to address this issue?
Thank you for your guidance and help.