compilation fix for Win16
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3641,6 +3641,8 @@ extern wxWindow *wxGetWindowFromHWND(WXHWND hWnd)
|
|||||||
win = wxFindWinFromHandle((WXHWND)hwnd);
|
win = wxFindWinFromHandle((WXHWND)hwnd);
|
||||||
if ( !win )
|
if ( !win )
|
||||||
{
|
{
|
||||||
|
// the radiobox pointer is stored in GWL_USERDATA only under Win32
|
||||||
|
#ifdef __WIN32__
|
||||||
// native radiobuttons return DLGC_RADIOBUTTON here and for any
|
// native radiobuttons return DLGC_RADIOBUTTON here and for any
|
||||||
// wxWindow class which overrides WM_GETDLGCODE processing to
|
// wxWindow class which overrides WM_GETDLGCODE processing to
|
||||||
// do it as well, win would be already non NULL
|
// do it as well, win would be already non NULL
|
||||||
@@ -3650,6 +3652,7 @@ extern wxWindow *wxGetWindowFromHWND(WXHWND hWnd)
|
|||||||
win = (wxWindow *)::GetWindowLong(hwnd, GWL_USERDATA);
|
win = (wxWindow *)::GetWindowLong(hwnd, GWL_USERDATA);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif // Win32
|
||||||
{
|
{
|
||||||
// hwnd is not a wxWindow, try its parent next below
|
// hwnd is not a wxWindow, try its parent next below
|
||||||
hwnd = ::GetParent(hwnd);
|
hwnd = ::GetParent(hwnd);
|
||||||
|
Reference in New Issue
Block a user