diff --git a/resource.h b/resource.h index d5194b06..0297b009 100644 --- a/resource.h +++ b/resource.h @@ -23,8 +23,7 @@ #define IDC_ABOUT_BUG_URL 1033 #define IDC_NOTIFICATION_ICON 1040 #define IDC_NOTIFICATION_TEXT 1041 -#define IDC_NOTIFICATION_CLOSE 1042 -#define IDC_NOTIFICATION_LINE 1043 +#define IDC_NOTIFICATION_LINE 1042 #define IDC_LICENSE_TEXT 1050 // Next default values for new objects diff --git a/rufus.h b/rufus.h index 8175e636..81fdf1a0 100644 --- a/rufus.h +++ b/rufus.h @@ -73,6 +73,7 @@ extern INT_PTR CreateAboutBox(void); extern HWND CreateTooltip(HWND hControl, char* message, int duration); extern void DestroyTooltip(HWND hWnd); extern void DestroyAllTooltips(void); +extern void Notification(int type, char* text, char* title); /* Basic String Array */ typedef struct { diff --git a/rufus.rc b/rufus.rc index ff69d917..8352b75a 100644 --- a/rufus.rc +++ b/rufus.rc @@ -75,7 +75,7 @@ BEGIN CONTROL "",IDC_STATIC,"Static",SS_WHITERECT,0,0,263,38 ICON 32516,IDC_NOTIFICATION_ICON,6,6,20,20 LTEXT "",IDC_NOTIFICATION_TEXT,35,10,219,20 - DEFPUSHBUTTON "Close",IDC_NOTIFICATION_CLOSE,211,44,50,14 + DEFPUSHBUTTON "Close",IDCANCEL,211,44,50,14 END IDD_LICENSE DIALOGEX 0, 0, 335, 205 diff --git a/stdlg.c b/stdlg.c index 4a198c39..aa500e59 100644 --- a/stdlg.c +++ b/stdlg.c @@ -549,7 +549,6 @@ INT_PTR CALLBACK NotificationCallback(HWND hDlg, UINT message, WPARAM wParam, LP switch (LOWORD(wParam)) { case IDOK: case IDCANCEL: - case IDC_NOTIFICATION_CLOSE: EndDialog(hDlg, LOWORD(wParam)); return (INT_PTR)TRUE; }