From f84ad00e1572665d52cb017d9349e256a87a45cd Mon Sep 17 00:00:00 2001 From: blythe Date: Tue, 2 Jun 1998 22:42:43 +0000 Subject: [PATCH] When using a blank page as the homepage, sometimes the wait cursor hangs around. This fixes that. --- cmd/winfe/framinit.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/cmd/winfe/framinit.cpp b/cmd/winfe/framinit.cpp index 6baa58813a8..916fb5909b3 100755 --- a/cmd/winfe/framinit.cpp +++ b/cmd/winfe/framinit.cpp @@ -515,6 +515,22 @@ BOOL CMainFrame::FileBookmark(HT_Resource pFolder) // void CMainFrame::OnLoadHomePage() { + // Sometimes on startup the hourglass will remain if we use a blank + // page as the home page. + // We can avoid this by simply sticking the arrow in. If we do load + // a page, the hourglass will appear again in GetUrl, and stay + // around until LayoutNewDocument. + HCURSOR hCurrent = ::GetCursor(); + if(hCurrent) { + HCURSOR hWait = ::LoadCursor(NULL, IDC_WAIT); + if(hCurrent == hWait) { + HCURSOR hArrow = ::LoadCursor(NULL, IDC_ARROW); + if(hArrow) { + ::SetCursor(hArrow); + } + } + } + #ifdef EDITOR if ( IsEditFrame() ) {