X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce3ed50dbe32d118321082db84c3a9abb047d5b7..22d6efa851642c6a69174278fc50f712f41e2271:/src/msw/taskbar.cpp?ds=sidebyside diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index 809c2b7af8..8c8fbe0b6f 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -28,16 +28,20 @@ #include "wx/utils.h" #endif -#ifdef __WIN95__ +#if defined(__WIN95__) && !defined(__TWIN32__) #include #include #include #include +#ifndef __TWIN32__ #ifdef __GNUWIN32__ +#ifndef wxUSE_NORLANDER_HEADERS #include #endif +#endif +#endif #ifdef __SALFORDC__ #include @@ -46,7 +50,7 @@ LRESULT APIENTRY _EXPORT wxTaskBarIconWindowProc( HWND hWnd, unsigned msg, UINT wParam, LONG lParam ); -char *wxTaskBarWindowClass = "wxTaskBarWindowClass"; +wxChar *wxTaskBarWindowClass = _T("wxTaskBarWindowClass"); wxList wxTaskBarIcon::sm_taskBarIcons; bool wxTaskBarIcon::sm_registeredClass = FALSE; @@ -115,10 +119,10 @@ bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip) notifyData.hIcon = (HICON) icon.GetHICON(); } - if (((const char*) tooltip != NULL) && (tooltip != "")) + if (((const wxChar*) tooltip != NULL) && (tooltip != _T(""))) { notifyData.uFlags |= NIF_TIP ; - lstrcpyn(notifyData.szTip, (char*) (const char*) tooltip, sizeof(notifyData.szTip)); + lstrcpyn(notifyData.szTip, WXSTRINGCAST tooltip, sizeof(notifyData.szTip)); } notifyData.uID = 99; @@ -237,7 +241,7 @@ bool wxTaskBarIcon::RegisterWindowClass() return TRUE; // Also register the taskbar message here - sm_taskbarMsg = ::RegisterWindowMessage("wxTaskBarIconMessage"); + sm_taskbarMsg = ::RegisterWindowMessage(_T("wxTaskBarIconMessage")); WNDCLASS wc; bool rc; @@ -269,7 +273,7 @@ WXHWND wxTaskBarIcon::CreateTaskBarWindow() HINSTANCE hInstance = GetModuleHandle(NULL); HWND hWnd = CreateWindowEx (0, wxTaskBarWindowClass, - "wxTaskBarWindow", + _T("wxTaskBarWindow"), WS_OVERLAPPED, 0, 0,