]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Patch [ 588732 ] makes wxRB_GROUP/radiobuttons working
[wxWidgets.git] / src / msw / window.cpp
index fcd633be7d436a46c97b496555f9cdd7d53dd500..36162cb9a9be5fc03a20a1f3b8468ebb750efb90 100644 (file)
@@ -430,7 +430,7 @@ bool wxWindowMSW::Create(wxWindow *parent,
         msflags |= WS_VISIBLE;
     }
 
-    bool retValue = MSWCreate(wxCanvasClassName, NULL, pos, size, msflags, exstyle);
+    bool retVal = MSWCreate(wxCanvasClassName, NULL, pos, size, msflags, exstyle);
     if (retVal)
         SetWindowLong( (HWND)m_hWnd, GWL_WNDPROC, (LONG)wxWndProc);
     return retVal;
@@ -3078,7 +3078,7 @@ bool wxWindowMSW::HandleTooltipNotify(WXUINT code,
     // we need to handle it as well, otherwise no tooltips will be shown in
     // this case
 
-    if ( !(code == TTN_NEEDTEXTA || code == TTN_NEEDTEXTW) || ttip.empty() )
+    if ( !(code == (WXUINT) TTN_NEEDTEXTA || code == (WXUINT) TTN_NEEDTEXTW) || ttip.empty() )
     {
         // not a tooltip message or no tooltip to show anyhow
         return FALSE;
@@ -3086,7 +3086,7 @@ bool wxWindowMSW::HandleTooltipNotify(WXUINT code,
 
     LPTOOLTIPTEXT ttText = (LPTOOLTIPTEXT)lParam;
 
-    if ( code == TTN_NEEDTEXTA )
+    if ( code == (WXUINT) TTN_NEEDTEXTA )
     {
         ttText->lpszText = (wxChar *)ttip.c_str();
     }