I'm working with a VS2019 C (not C++) project that has unexpected transparent borders that are two or three pixels thick. The project was originally created for Windows 7 using VS2010 and did not have these borders in that environment (I still have that system and I checked.) The program has a "full screen" mode (without title bar, menu, frames, etc.) that works perfectly with no margins, but when I allow the system to handle the MAXIMIZE function, the borders appear. After checking, this affects all of our projects, even those created by VS2019 specifically for Win10. It also appears to affect other (3rd party) products, but not all of them. So there IS a solution.
But is the solution possible with a native C project? If so, can anyone offer any ideas?
FWIW, when the program is not in full screen mode, I forward all WM_GETMINMAXINFO, WM_SIZE and any other related messages to Windows, so I shouldn't be involved in whatever is happening. Plus, this happens even in the simplest "Hello World"-type project that does nothing but create a window that is filled with a solid color during the WM_PAINT, so I KNOW is it not in my code. I suspect a "magic" (to me) new project setting, but since I don't know what it might be, I have no possible way to search for it, either! HELP!
PS: Sorry about the lousy tags, I have no idea how to best tag this question, but knowing the answer would probably help with that!