Why is the window is drawn above and to the left than it should?

Hi all, there arose a question, create a window for your program and want it to appear on the start menu, lower right, size is 480*320, wrote the code
SystemParametersInfo(SPI_GETWORKAREA, 0, &WorkAreaSize, 0);

 XWindowsSize UINT = 480;
 YWindowsSize UINT = 320;

 UINT yPosition = WorkAreaSize.bottom - WorkAreaSize.top - yWindowsSize;
 UINT xPosition = WorkAreaSize.right - WorkAreaSize.left - xWindowsSize;
 xPosition, yPosition, xWindowsSize, yWindowsSize, NULL, NULL, hInst, NULL);
 if (!hWnd) {
 MessageBox(NULL, L"Can't create window!", TEXT("Warning!"), MB_ICONERROR | MB_OK | MB_TOPMOST);
 return 1;

what would the window appear where I want, and it appears of 7 pixels above and to the left than I have? why? run on Windows 10, other no way to check
July 2nd 19 at 13:10
1 answer
July 2nd 19 at 13:12
In the 10-ke around the window has a transparent frame just like 7 pixels. Now not in 10 coy sitting, but I think if you make a screenshot of the active window, then the picture gets a window and even a little bit from all sides. Here it is (transparent frame) is.
It's a shadow, MB? - blake_Eichma commented on July 2nd 19 at 13:15
Yes, this information POPs up in places, but what to do that would be to get around can't find - magnolia_VonRueden13 commented on July 2nd 19 at 13:18
: And what is there to hurt like that window design. Why is it so - I was not interested. Can Window Styles there is another option box? - Tom71 commented on July 2nd 19 at 13:21

Find more questions by tags WindowsC++Visual Studio