wordpad: Accept double-click in date and time dialog.

This commit is contained in:
Hirofumi Katayama 2008-11-08 10:33:33 +09:00 committed by Alexandre Julliard
parent a43adb40af
commit 7984e70697
2 changed files with 6 additions and 1 deletions

View File

@ -110,7 +110,7 @@ CAPTION "Date and time"
FONT 10, "MS Sans Serif"
BEGIN
LTEXT "Available formats",0,3,2,100,15
LISTBOX IDC_DATETIME,3,12,80,65,LBS_NOINTEGRALHEIGHT
LISTBOX IDC_DATETIME,3,12,80,65,LBS_NOINTEGRALHEIGHT | LBS_NOTIFY
PUSHBUTTON "&OK",IDOK,87,12,40,12
PUSHBUTTON "&Cancel",IDCANCEL,87,26,40,12
END

View File

@ -1373,6 +1373,11 @@ static INT_PTR CALLBACK datetime_proc(HWND hWnd, UINT message, WPARAM wParam, LP
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDC_DATETIME:
if (HIWORD(wParam) != LBN_DBLCLK)
break;
/* Fall through */
case IDOK:
{
LRESULT index;