]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/private.h
nested iterator classes must be dll-exported
[wxWidgets.git] / include / wx / msw / private.h
index 075ce5f3a9f8b5b8cdc8e8769d51c2a1712810d0..c1b5e3e4cf4accdeb3f31ccff33b98a6c6579499 100644 (file)
@@ -896,9 +896,9 @@ inline void *wxSetWindowUserData(HWND hwnd, void *data)
 
 // note that the casts to LONG_PTR here are required even on 32-bit machines
 // for the 64-bit warning mode of later versions of MSVC (C4311/4312)
-inline void *wxGetWindowProc(HWND hwnd)
+inline WNDPROC wxGetWindowProc(HWND hwnd)
 {
-    return (void *)(LONG_PTR)::GetWindowLong(hwnd, GWL_WNDPROC);
+    return (WNDPROC)(LONG_PTR)::GetWindowLong(hwnd, GWL_WNDPROC);
 }
 
 inline void *wxGetWindowUserData(HWND hwnd)