mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
if scrollbar has focus when removed due to screen resize, don't
continue to draw indicator rects in focus color
This commit is contained in:
parent
f8870da48f
commit
5c53620470
1 changed files with 4 additions and 5 deletions
|
@ -160,6 +160,7 @@ static int messageBoxStream( CEAppGlobals* globals, XWStreamCtxt* stream,
|
||||||
static XP_Bool ceQueryFromStream( CEAppGlobals* globals, XWStreamCtxt* stream);
|
static XP_Bool ceQueryFromStream( CEAppGlobals* globals, XWStreamCtxt* stream);
|
||||||
static XP_Bool isDefaultName( CEAppGlobals* globals, const XP_UCHAR* name );
|
static XP_Bool isDefaultName( CEAppGlobals* globals, const XP_UCHAR* name );
|
||||||
static void ceSetTitleFromName( CEAppGlobals* globals );
|
static void ceSetTitleFromName( CEAppGlobals* globals );
|
||||||
|
static void removeScrollbar( CEAppGlobals* globals );
|
||||||
|
|
||||||
|
|
||||||
#ifndef _WIN32_WCE
|
#ifndef _WIN32_WCE
|
||||||
|
@ -455,10 +456,7 @@ makeScrollbar( CEAppGlobals* globals, XP_U16 nHidden, XP_U16 xx, XP_U16 yy,
|
||||||
|
|
||||||
/* Need to destroy it, or resize it, because board size may be changing
|
/* Need to destroy it, or resize it, because board size may be changing
|
||||||
in case where portrait display's been flipped. */
|
in case where portrait display's been flipped. */
|
||||||
if ( !!globals->scrollHandle ) {
|
removeScrollbar( globals );
|
||||||
DestroyWindow( globals->scrollHandle );
|
|
||||||
globals->scrollHandle = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
hwndSB = CreateWindow( TEXT("SCROLLBAR"), // Class name
|
hwndSB = CreateWindow( TEXT("SCROLLBAR"), // Class name
|
||||||
NULL, // Window text
|
NULL, // Window text
|
||||||
|
@ -489,6 +487,7 @@ removeScrollbar( CEAppGlobals* globals )
|
||||||
if ( !!globals->scrollHandle ) {
|
if ( !!globals->scrollHandle ) {
|
||||||
DestroyWindow( globals->scrollHandle );
|
DestroyWindow( globals->scrollHandle );
|
||||||
globals->scrollHandle = NULL;
|
globals->scrollHandle = NULL;
|
||||||
|
globals->scrollerHasFocus = XP_FALSE;
|
||||||
}
|
}
|
||||||
} /* removeScrollbar */
|
} /* removeScrollbar */
|
||||||
#endif
|
#endif
|
||||||
|
@ -2502,7 +2501,7 @@ WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
/* The code above this point works to turn 12-key->text
|
/* The code above this point works to turn 12-key->text
|
||||||
translation on, but not to turn it off, so other apps wind up
|
translation on, but not to turn it off, so other apps wind up
|
||||||
with it on after Crosswords quits. The recommended code is
|
with it on after Crosswords quits. The recommended code is
|
||||||
below, but includes constants on in the version of cegcc I'm
|
below, but includes constants not in the version of cegcc I'm
|
||||||
using. Need to look into upgrading, but that requires a lot
|
using. Need to look into upgrading, but that requires a lot
|
||||||
of changes. Post B2.... */
|
of changes. Post B2.... */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue