wordpad: Accept double-click in date and time dialog.
This commit is contained in:
parent
a43adb40af
commit
7984e70697
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue