X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b39dbf34b887a73c525da903d8599f4f6b7eb8f9..b08c90ca63723536960122fc798f673af1faed13:/src/msw/taskbar.cpp diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index 4c868c06a5..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); @@ -237,7 +236,7 @@ void wxTaskBarIcon::_OnRButtonDClick(wxEvent& e) { OnRButtonDClick(e); } wxTaskBarIcon* wxTaskBarIcon::FindObjectForHWND(WXHWND hWnd) { - wxTaskBarIconList::Node *node = sm_taskBarIcons.GetFirst(); + wxTaskBarIconList::compatibility_iterator node = sm_taskBarIcons.GetFirst(); while (node) { wxTaskBarIcon *obj = node->GetData();