X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/222ed1d678dff2f5c3c4164321dd05e8f47de487..b5df4fc722412fe5f6764c490925b26293c5f662:/src/msw/taskbar.cpp diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index 4a76e3e018..23e0025154 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -10,7 +10,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "taskbar.h" #endif @@ -31,19 +31,18 @@ #if defined(__WIN95__) -#include - +#include "wx/msw/private.h" #include "wx/msw/winundef.h" #include #include "wx/taskbar.h" -#include "wx/msw/private.h" #ifdef __GNUWIN32_OLD__ #include "wx/msw/gnuwin32/extra.h" #endif -#ifdef __SALFORDC__ +#ifdef __WXWINCE__ + #include #include #endif @@ -151,7 +150,8 @@ bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip) if ( !tooltip.empty() ) { notifyData.uFlags |= NIF_TIP; - lstrcpyn(notifyData.szTip, tooltip.c_str(), WXSIZEOF(notifyData.szTip)); +// lstrcpyn(notifyData.szTip, tooltip.c_str(), WXSIZEOF(notifyData.szTip)); + wxStrncpy(notifyData.szTip, tooltip.c_str(), WXSIZEOF(notifyData.szTip)); } bool ok = Shell_NotifyIcon(m_iconAdded ? NIM_MODIFY @@ -184,7 +184,6 @@ bool wxTaskBarIcon::PopupMenu(wxMenu *menu) s_inPopup = true; - bool rval = false; wxWindow* win; int x, y; wxGetMousePosition(&x, &y); @@ -202,7 +201,7 @@ bool wxTaskBarIcon::PopupMenu(wxMenu *menu) // Work around a WIN32 bug ::SetForegroundWindow ((HWND) win->GetHWND ()); - rval = win->PopupMenu(menu, 0, 0); + bool rval = win->PopupMenu(menu, 0, 0); // Work around a WIN32 bug ::PostMessage ((HWND) win->GetHWND(),WM_NULL,0,0L);