Config has an X button. Functionally works as a cancel (so you aren't forced to save the changes you made.

This commit is contained in:
adelikat 2008-09-10 03:16:54 +00:00
parent 63d4b51e6c
commit 504c654fb3
3 changed files with 12 additions and 7 deletions

View File

@ -273,6 +273,11 @@ BOOL CALLBACK ConfigView_Proc(HWND dialog,UINT komunikat,WPARAM wparam,LPARAM lp
//SendDlgItemMessage(dialog,IDC_COMBO13,CB_SETCURSEL,KEY_DEBUG,0);
break;
case WM_CLOSE:
case WM_QUIT:
EndDialog(dialog,0);
return 1;
break;
case WM_COMMAND:
if((HIWORD(wparam)==BN_CLICKED)&&(((int)LOWORD(wparam))==IDC_BUTTON1))
{

View File

@ -1171,7 +1171,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
ReleaseCapture();
NDS_releasTouch();
return 0;
case WM_COMMAND:
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDM_OPEN:

View File

@ -206,10 +206,10 @@ END
// Dialog
//
IDD_CONFIG DIALOG 0, 0, 125, 227
STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | WS_POPUP | WS_CAPTION
IDD_CONFIG DIALOGEX 0, 0, 125, 227
STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Konfigurer Input"
FONT 8, "MS Sans Serif"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
DEFPUSHBUTTON "OK",IDC_FERMER,67,208,50,14
PUSHBUTTON "Standard",IDC_BUTTON1,7,208,50,14
@ -741,10 +741,10 @@ END
// Dialog
//
IDD_CONFIG DIALOG 0, 0, 125, 227
STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | WS_POPUP | WS_CAPTION
IDD_CONFIG DIALOGEX 0, 0, 125, 227
STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Configure Keys"
FONT 8, "MS Sans Serif"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
DEFPUSHBUTTON "OK",IDC_FERMER,67,208,50,14
PUSHBUTTON "Default",IDC_BUTTON1,7,208,50,14