Commit c80fdb88 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

comctl32: Use style to distinguish between embedded and standalone propsheets.

Some programs alter propsheet style in the callback during creation to make "embedded" propsheets. PSH_MODELESS controls modal/modeless operation only.
parent 5276d886
...@@ -743,6 +743,7 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo) ...@@ -743,6 +743,7 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo)
int buttonHeight; int buttonHeight;
PADDING_INFO padding = PROPSHEET_GetPaddingInfo(hwndDlg); PADDING_INFO padding = PROPSHEET_GetPaddingInfo(hwndDlg);
RECT units; RECT units;
LONG style;
/* Get the height of buttons */ /* Get the height of buttons */
GetClientRect(hwndButton, &rc); GetClientRect(hwndButton, &rc);
...@@ -798,8 +799,9 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo) ...@@ -798,8 +799,9 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo)
rc.right += (padding.x * 2); rc.right += (padding.x * 2);
rc.bottom += buttonHeight + (3 * padding.y); rc.bottom += buttonHeight + (3 * padding.y);
if (!psInfo->isModeless) style = GetWindowLongW(hwndDlg, GWL_STYLE);
AdjustWindowRect(&rc, GetWindowLongW(hwndDlg, GWL_STYLE), FALSE); if (!(style & WS_CHILD))
AdjustWindowRect(&rc, style, FALSE);
rc.right -= rc.left; rc.right -= rc.left;
rc.bottom -= rc.top; rc.bottom -= rc.top;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment