X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad5c34f309074eefe625b82e1203eec5b91247f5..73c022c90a3c670cf91049c3b022bab7e88dda39:/src/msw/taskbar.cpp diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index 334be2636e..fdf563dc37 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -21,8 +21,6 @@ #pragma hdrstop #endif -#include - #ifndef WX_PRECOMP #include "wx/defs.h" #include "wx/window.h" @@ -30,20 +28,27 @@ #include "wx/utils.h" #endif -#ifdef __WIN95__ +#if defined(__WIN95__) && !defined(__TWIN32__) +#include #include #include #include +#ifndef __TWIN32__ #ifdef __GNUWIN32__ #include #endif +#endif + +#ifdef __SALFORDC__ +#include +#endif 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; @@ -112,10 +117,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; @@ -234,7 +239,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; @@ -266,7 +271,7 @@ WXHWND wxTaskBarIcon::CreateTaskBarWindow() HINSTANCE hInstance = GetModuleHandle(NULL); HWND hWnd = CreateWindowEx (0, wxTaskBarWindowClass, - "wxTaskBarWindow", + _T("wxTaskBarWindow"), WS_OVERLAPPED, 0, 0,