mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Implemented DS_CENTER dialog style.
This commit is contained in:
parent
7e8244bce7
commit
fcc9d13136
@ -622,8 +622,16 @@ HWND32 DIALOG_CreateIndirect( HINSTANCE32 hInst, LPCSTR dlgTemplate,
|
||||
}
|
||||
else
|
||||
{
|
||||
rect.left += template.x * xUnit / 4;
|
||||
rect.top += template.y * yUnit / 8;
|
||||
if (template.style & DS_CENTER)
|
||||
{
|
||||
rect.left = (SYSMETRICS_CXSCREEN - rect.right) / 2;
|
||||
rect.top = (SYSMETRICS_CYSCREEN - rect.bottom) / 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
rect.left += template.x * xUnit / 4;
|
||||
rect.top += template.y * yUnit / 8;
|
||||
}
|
||||
if ( !(template.style & WS_CHILD) )
|
||||
{
|
||||
INT16 dX, dY;
|
||||
|
Loading…
Reference in New Issue
Block a user