user32: Don't overwrite the default button id when creating the dialog structure.
This commit is contained in:
parent
1442a18e3a
commit
a64765f673
|
@ -446,7 +446,6 @@ static HWND DIALOG_CreateIndirect16( HINSTANCE16 hInst, LPCVOID dlgTemplate,
|
|||
dlgInfo->hMenu = HMENU_32( hMenu );
|
||||
dlgInfo->xBaseUnit = xBaseUnit;
|
||||
dlgInfo->yBaseUnit = yBaseUnit;
|
||||
dlgInfo->idResult = IDOK;
|
||||
dlgInfo->flags = flags;
|
||||
|
||||
SetWindowLong16( HWND_16(hwnd), DWLP_DLGPROC, (LONG)dlgProc );
|
||||
|
|
|
@ -339,7 +339,7 @@ DIALOGINFO *DIALOG_get_info( HWND hwnd, BOOL create )
|
|||
dlgInfo->hMenu = 0;
|
||||
dlgInfo->xBaseUnit = 0;
|
||||
dlgInfo->yBaseUnit = 0;
|
||||
dlgInfo->idResult = 0;
|
||||
dlgInfo->idResult = IDOK;
|
||||
dlgInfo->flags = 0;
|
||||
wndPtr->dlgInfo = dlgInfo;
|
||||
}
|
||||
|
|
|
@ -672,7 +672,6 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
|
|||
dlgInfo->hMenu = hMenu;
|
||||
dlgInfo->xBaseUnit = xBaseUnit;
|
||||
dlgInfo->yBaseUnit = yBaseUnit;
|
||||
dlgInfo->idResult = IDOK;
|
||||
dlgInfo->flags = flags;
|
||||
|
||||
if (template.helpId) SetWindowContextHelpId( hwnd, template.helpId );
|
||||
|
|
Loading…
Reference in New Issue