X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf63f3d3ae66075641094ab03328403c7d6e74df..0bbe61b8c18a1795189f0cf73cc61c14a0fb846d:/src/msw/utilsgui.cpp diff --git a/src/msw/utilsgui.cpp b/src/msw/utilsgui.cpp index 5b091fd03b..e3c65df081 100644 --- a/src/msw/utilsgui.cpp +++ b/src/msw/utilsgui.cpp @@ -107,7 +107,9 @@ bool wxCheckForInterrupt(wxWindow *wnd) #ifndef __WXMICROWIN__ wxChar *wxLoadUserResource(const wxString& resourceName, const wxString& resourceType) { - HRSRC hResource = ::FindResource(wxGetInstance(), resourceName, resourceType); + HRSRC hResource = ::FindResource(wxGetInstance(), + resourceName.wx_str(), + resourceType.wx_str()); if ( hResource == 0 ) return NULL; @@ -126,8 +128,6 @@ wxChar *wxLoadUserResource(const wxString& resourceName, const wxString& resourc wxStrncpy(s,theText,len); s[len]=0; - // wxChar *s = copystring(theText); - // Obsolete in WIN32 #ifndef __WIN32__ UnlockResource(hData); @@ -293,9 +293,9 @@ wxString WXDLLEXPORT wxGetWindowClass(WXHWND hWnd) return str; } -WXWORD WXDLLEXPORT wxGetWindowId(WXHWND hWnd) +int WXDLLEXPORT wxGetWindowId(WXHWND hWnd) { - return (WXWORD)GetWindowLong((HWND)hWnd, GWL_ID); + return ::GetWindowLong((HWND)hWnd, GWL_ID); } // ----------------------------------------------------------------------------