git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50181
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// get the window id (should be unsigned, hence this is not wxWindowID which
// is, for mainly historical reasons, signed)
// get the window id (should be unsigned, hence this is not wxWindowID which
// is, for mainly historical reasons, signed)
-extern WXDLLEXPORT WXWORD wxGetWindowId(WXHWND hWnd);
+extern WXDLLEXPORT int wxGetWindowId(WXHWND hWnd);
// check if hWnd's WNDPROC is wndProc. Return true if yes, false if they are
// different
// check if hWnd's WNDPROC is wndProc. Return true if yes, false if they are
// different
wxWindow *child = node->GetData();
if ( child->GetHWND() )
{
wxWindow *child = node->GetData();
if ( child->GetHWND() )
{
- long childId = wxGetWindowId(child->GetHWND());
- if (childId == (long)id)
+ int childId = wxGetWindowId(child->GetHWND());
+ if ( childId == (signed short)id )
{
::SendMessage( GetWinHwnd(GetClientWindow()),
WM_MDIACTIVATE,
{
::SendMessage( GetWinHwnd(GetClientWindow()),
WM_MDIACTIVATE,
-WXWORD WXDLLEXPORT wxGetWindowId(WXHWND hWnd)
+int WXDLLEXPORT wxGetWindowId(WXHWND hWnd)
- return (WXWORD)GetWindowLong((HWND)hWnd, GWL_ID);
+ return ::GetWindowLong((HWND)hWnd, GWL_ID);
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------