From 287311ebabb9fbb5196f46846ec887e897cfd654 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 14 Jun 2013 13:40:54 -0300 Subject: [PATCH] Update PianoControl.cpp --- src/PianoControl.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/PianoControl.cpp b/src/PianoControl.cpp index b3a7aca..d1c1c9c 100644 --- a/src/PianoControl.cpp +++ b/src/PianoControl.cpp @@ -3,36 +3,6 @@ #include #include -#define MessageErrorWndTitle(hwnd, e, t) MessageBox(hwnd, e, t, MB_ICONERROR) -#define MessageErrorWnd(hwnd, e) MessageBox(hwnd, e, T("Error!"), MB_ICONERROR) -#define MessageError(e) MessageErrorWnd(NULL, e) - -#define MessageLastErrorWndTitle(hwnd, e, title)\ - do { \ - LPTSTR s; \ - if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, e, 0, (LPTSTR)&s, 0, NULL) == 0) {\ - TCHAR str[25]; \ - snprintf(str, 25, T("%x"), str); \ - MessageErrorWndTitle(hwnd, str, title); \ - } else { \ - MessageErrorWndTitle(hwnd, s, title); \ - LocalFree(s); \ - } \ - } while (0) -#define MessageLastErrorWnd(hwnd, e) MessageLastErrorWndTitle(hwnd, e, T("Error!")) -#define MessageLastError(e) MessageLastErrorWnd(NULL, e) - -#define MessageIntBox(hwnd, i, title, opt) \ - do { \ - CHAR buf[100]; \ - sprintf_s(buf, 100, "%d", i); \ - MessageBoxA(hwnd, buf, title, opt); \ - } while (0) - -#define MessageIntWndTitle(hwnd, i, title) MessageIntBox(hwnd, i, title, MB_ICONINFORMATION) -#define MessageIntWnd(hwnd, i) MessageIntWndTitle(hwnd, i, "Debug Info") -#define MessageInt(i) MessageIntWnd(NULL, i) - BOOL PianoControl::WinRegisterClass(WNDCLASS *pwc) { return __super::WinRegisterClass(pwc);