X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0470b1e6fe7a49bb87756006ef9fc232e3dbaaf8..794bcc2dea743ac907b839f54e451847c9ea4b72:/include/wx/msw/winundef.h?ds=inline diff --git a/include/wx/msw/winundef.h b/include/wx/msw/winundef.h index 04ab36ae4d..e580f24650 100644 --- a/include/wx/msw/winundef.h +++ b/include/wx/msw/winundef.h @@ -187,6 +187,19 @@ } #endif +// FindResource +#ifdef FindResource + #undef FindResource + inline HRSRC FindResource(HMODULE hModule, LPCTSTR lpName, LPCTSTR lpType) + { + #ifdef _UNICODE + return FindResourceW(hModule, lpName, lpType); + #else + return FindResourceA(hModule, lpName, lpType); + #endif + } +#endif + // IsMaximized #ifdef IsMaximized