Commit 7984e706 authored by Hirofumi Katayama's avatar Hirofumi Katayama Committed by Alexandre Julliard

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

parent a43adb40
...@@ -110,7 +110,7 @@ CAPTION "Date and time" ...@@ -110,7 +110,7 @@ CAPTION "Date and time"
FONT 10, "MS Sans Serif" FONT 10, "MS Sans Serif"
BEGIN BEGIN
LTEXT "Available formats",0,3,2,100,15 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 "&OK",IDOK,87,12,40,12
PUSHBUTTON "&Cancel",IDCANCEL,87,26,40,12 PUSHBUTTON "&Cancel",IDCANCEL,87,26,40,12
END END
......
...@@ -1373,6 +1373,11 @@ static INT_PTR CALLBACK datetime_proc(HWND hWnd, UINT message, WPARAM wParam, LP ...@@ -1373,6 +1373,11 @@ static INT_PTR CALLBACK datetime_proc(HWND hWnd, UINT message, WPARAM wParam, LP
case WM_COMMAND: case WM_COMMAND:
switch(LOWORD(wParam)) switch(LOWORD(wParam))
{ {
case IDC_DATETIME:
if (HIWORD(wParam) != LBN_DBLCLK)
break;
/* Fall through */
case IDOK: case IDOK:
{ {
LRESULT index; LRESULT index;
......
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