X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b39dbf34b887a73c525da903d8599f4f6b7eb8f9..6ee3c06421446908fabe9de45b8e0c7519c28c24:/src/msw/taskbar.cpp diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index 4c868c06a5..cc2b9bc9c5 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -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 @@ -237,7 +237,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();