]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/taskbar.cpp
fix for the crash when pressing TAB in the edit control created by EditLabel() (bug...
[wxWidgets.git] / src / msw / taskbar.cpp
index 0cab9d2d3aecfdb2f333eca1ce15d7eda95b10ac..3d14a5970df93d9cd92ba37f929d1d631fba17a3 100644 (file)
@@ -52,7 +52,7 @@
 LRESULT APIENTRY _EXPORT wxTaskBarIconWindowProc( HWND hWnd, unsigned msg,
                                      UINT wParam, LONG lParam );
 
-wxChar *wxTaskBarWindowClass = wxT("wxTaskBarWindowClass");
+wxChar *wxTaskBarWindowClass = (wxChar*) wxT("wxTaskBarWindowClass");
 
 wxList wxTaskBarIcon::sm_taskBarIcons;
 bool   wxTaskBarIcon::sm_registeredClass = FALSE;
@@ -355,9 +355,7 @@ long wxTaskBarIcon::WindowProc( WXHWND hWnd, unsigned int msg, unsigned int wPar
         }
 
     if (eventType) {
-        wxEvent event;
-        event.SetEventType(eventType);
-        event.SetEventObject(this);
+        wxTaskBarIconEvent event(eventType, this);
 
         ProcessEvent(event);
     }