mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-07 16:31:00 +00:00
Fixed window width and height problem by using SM_CXPADDEDBORDER
But it would be nicer to define this somewhere by: #ifndef SM_CXPADDEDBORDER #define SM_CXPADDEDBORDER 92 #endif
This commit is contained in:
parent
d5e2103d58
commit
0d7cbfd463
@ -1954,10 +1954,10 @@ static void GetWidthHeight(int& nWidth, int& nHeight)
|
||||
{
|
||||
nWidth = g_nViewportCX + VIEWPORTX*2
|
||||
+ BUTTONCX
|
||||
+ GetSystemMetrics(SM_CXBORDER)*2
|
||||
+ (GetSystemMetrics(SM_CXBORDER) + GetSystemMetrics(92)) * 2 // 92 = SM_CXPADDEDBORDER
|
||||
+ MAGICX;
|
||||
nHeight = g_nViewportCY + VIEWPORTY*2
|
||||
+ GetSystemMetrics(SM_CYBORDER)
|
||||
+ (GetSystemMetrics(SM_CYBORDER) + GetSystemMetrics(92)) * 2 // 92 = SM_CXPADDEDBORDER
|
||||
+ GetSystemMetrics(SM_CYCAPTION)
|
||||
+ MAGICY;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user