X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b11b437e8d6c89eb2e8a8a638dc3a8fd7d638a0e..739c5499fcab1c165b8dd0591c9fd9e2329b3cf9:/src/msw/taskbar.cpp?ds=inline diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index dd6e1be588..4141b0e3c8 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -31,6 +31,7 @@ #include #include "wx/taskbar.h" +#include "wx/msw/private.h" #include "wx/dynlib.h" #ifndef NIN_BALLOONTIMEOUT @@ -176,7 +177,7 @@ struct NotifyIconData : public NOTIFYICONDATA // wxTaskBarIcon // ---------------------------------------------------------------------------- -wxTaskBarIcon::wxTaskBarIcon() +wxTaskBarIcon::wxTaskBarIcon(wxTaskBarIconType WXUNUSED(iconType)) { m_win = NULL; m_iconAdded = false; @@ -214,7 +215,7 @@ bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip) NotifyIconData notifyData(GetHwndOf(m_win)); - if (icon.Ok()) + if (icon.IsOk()) { notifyData.uFlags |= NIF_ICON; notifyData.hIcon = GetHiconOf(icon); @@ -225,7 +226,7 @@ bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip) notifyData.uFlags |= NIF_TIP; if ( !tooltip.empty() ) { - wxStrlcpy(notifyData.szTip, tooltip.wx_str(), WXSIZEOF(notifyData.szTip)); + wxStrlcpy(notifyData.szTip, tooltip.t_str(), WXSIZEOF(notifyData.szTip)); } bool ok = wxShellNotifyIcon(m_iconAdded ? NIM_MODIFY @@ -270,8 +271,8 @@ wxTaskBarIcon::ShowBalloon(const wxString& title, notifyData = NotifyIconData(hwnd); notifyData.uFlags |= NIF_INFO; notifyData.uTimeout = msec; - wxStrlcpy(notifyData.szInfo, text.wx_str(), WXSIZEOF(notifyData.szInfo)); - wxStrlcpy(notifyData.szInfoTitle, title.wx_str(), + wxStrlcpy(notifyData.szInfo, text.t_str(), WXSIZEOF(notifyData.szInfo)); + wxStrlcpy(notifyData.szInfoTitle, title.t_str(), WXSIZEOF(notifyData.szInfoTitle)); if ( flags & wxICON_INFORMATION )