wxBeginBusyCursor now works (better)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-02-23 22:51:14 +00:00
parent e5c0b16a78
commit 634903fd04
2 changed files with 50 additions and 30 deletions

View File

@@ -231,6 +231,8 @@ void wxWindow::SetHWND(WXHWND hWnd)
void wxWindow::Init()
{
m_isWindow = TRUE;
// Generic
m_windowId = 0;
m_isShown = TRUE;
@@ -1483,6 +1485,20 @@ long wxWindow::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
case WM_GETDLGCODE:
return MSWGetDlgCode();
case WM_SETCURSOR:
if ( wxIsBusy() )
{
extern HCURSOR gs_wxBusyCursor; // from msw\utils.cpp
::SetCursor(gs_wxBusyCursor);
// returning TRUE stops the DefWindowProc() from further processing
// this message - exactly what we need because we've just set the
// cursor
return TRUE;
}
break; // leave it to DefWindowProc()
default:
return MSWDefWindowProc(message, wParam, lParam );
}