1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[ui] notification dialog improvements

This commit is contained in:
Pete Batard 2011-11-23 19:11:19 +00:00
parent 18986bffa4
commit 510fde1133
4 changed files with 3 additions and 4 deletions

View file

@ -23,8 +23,7 @@
#define IDC_ABOUT_BUG_URL 1033 #define IDC_ABOUT_BUG_URL 1033
#define IDC_NOTIFICATION_ICON 1040 #define IDC_NOTIFICATION_ICON 1040
#define IDC_NOTIFICATION_TEXT 1041 #define IDC_NOTIFICATION_TEXT 1041
#define IDC_NOTIFICATION_CLOSE 1042 #define IDC_NOTIFICATION_LINE 1042
#define IDC_NOTIFICATION_LINE 1043
#define IDC_LICENSE_TEXT 1050 #define IDC_LICENSE_TEXT 1050
// Next default values for new objects // Next default values for new objects

View file

@ -73,6 +73,7 @@ extern INT_PTR CreateAboutBox(void);
extern HWND CreateTooltip(HWND hControl, char* message, int duration); extern HWND CreateTooltip(HWND hControl, char* message, int duration);
extern void DestroyTooltip(HWND hWnd); extern void DestroyTooltip(HWND hWnd);
extern void DestroyAllTooltips(void); extern void DestroyAllTooltips(void);
extern void Notification(int type, char* text, char* title);
/* Basic String Array */ /* Basic String Array */
typedef struct { typedef struct {

View file

@ -75,7 +75,7 @@ BEGIN
CONTROL "",IDC_STATIC,"Static",SS_WHITERECT,0,0,263,38 CONTROL "",IDC_STATIC,"Static",SS_WHITERECT,0,0,263,38
ICON 32516,IDC_NOTIFICATION_ICON,6,6,20,20 ICON 32516,IDC_NOTIFICATION_ICON,6,6,20,20
LTEXT "",IDC_NOTIFICATION_TEXT,35,10,219,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 END
IDD_LICENSE DIALOGEX 0, 0, 335, 205 IDD_LICENSE DIALOGEX 0, 0, 335, 205

View file

@ -549,7 +549,6 @@ INT_PTR CALLBACK NotificationCallback(HWND hDlg, UINT message, WPARAM wParam, LP
switch (LOWORD(wParam)) { switch (LOWORD(wParam)) {
case IDOK: case IDOK:
case IDCANCEL: case IDCANCEL:
case IDC_NOTIFICATION_CLOSE:
EndDialog(hDlg, LOWORD(wParam)); EndDialog(hDlg, LOWORD(wParam));
return (INT_PTR)TRUE; return (INT_PTR)TRUE;
} }