UINT gs_msgRestartTaskbar = 0;
#if WXWIN_COMPATIBILITY_2_4
-BEGIN_EVENT_TABLE(wxTaskBarIcon, wxEvtHandler)
+BEGIN_EVENT_TABLE(wxTaskBarIcon, wxTaskBarIconBase)
EVT_TASKBAR_MOVE (wxTaskBarIcon::_OnMouseMove)
EVT_TASKBAR_LEFT_DOWN (wxTaskBarIcon::_OnLButtonDown)
EVT_TASKBAR_LEFT_UP (wxTaskBarIcon::_OnLButtonUp)
{
public:
wxTaskBarIconWindow(wxTaskBarIcon *icon)
- : wxFrame(NULL, -1, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0),
+ : wxFrame(NULL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0),
m_icon(icon)
{
}
-
+
WXLRESULT MSWWindowProc(WXUINT msg,
WXWPARAM wParam, WXLPARAM lParam)
{
wxTaskBarIcon *m_icon;
};
-
+
// ----------------------------------------------------------------------------
// NotifyIconData: wrapper around NOTIFYICONDATA
// ----------------------------------------------------------------------------
wxGetMousePosition(&x, &y);
m_win->Move(x, y);
-
+
m_win->PushEventHandler(this);
menu->UpdateUI();
#if WXWIN_COMPATIBILITY_2_4
// Overridables
-void wxTaskBarIcon::OnMouseMove(wxEvent&) {}
-void wxTaskBarIcon::OnLButtonDown(wxEvent&) {}
-void wxTaskBarIcon::OnLButtonUp(wxEvent&) {}
-void wxTaskBarIcon::OnRButtonDown(wxEvent&) {}
-void wxTaskBarIcon::OnRButtonUp(wxEvent&) {}
-void wxTaskBarIcon::OnLButtonDClick(wxEvent&) {}
-void wxTaskBarIcon::OnRButtonDClick(wxEvent&) {}
+void wxTaskBarIcon::OnMouseMove(wxEvent& e) { e.Skip(); }
+void wxTaskBarIcon::OnLButtonDown(wxEvent& e) { e.Skip(); }
+void wxTaskBarIcon::OnLButtonUp(wxEvent& e) { e.Skip(); }
+void wxTaskBarIcon::OnRButtonDown(wxEvent& e) { e.Skip(); }
+void wxTaskBarIcon::OnRButtonUp(wxEvent& e) { e.Skip(); }
+void wxTaskBarIcon::OnLButtonDClick(wxEvent& e) { e.Skip(); }
+void wxTaskBarIcon::OnRButtonDClick(wxEvent& e) { e.Skip(); }
void wxTaskBarIcon::_OnMouseMove(wxTaskBarIconEvent& e)
{ OnMouseMove(e); }
static bool s_registered = false;
if ( !s_registered )
- {
+ {
// Taskbar restart msg will be sent to us if the icon needs to be redrawn
gs_msgRestartTaskbar = RegisterWindowMessage(wxT("TaskbarCreated"));