diff options
author | Ben Kaduk <kaduk@mit.edu> | 2012-12-03 12:25:07 -0500 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2012-12-05 13:40:56 -0500 |
commit | ceb486df4301608d5b2462011fed6534e60721bd (patch) | |
tree | d82552ded62ceb61a693763b75dfd19042b109aa /src | |
parent | eef68e4dab824ef62dded1edb662d292ccad8984 (diff) | |
download | krb5-ceb486df4301608d5b2462011fed6534e60721bd.tar.gz krb5-ceb486df4301608d5b2462011fed6534e60721bd.tar.xz krb5-ceb486df4301608d5b2462011fed6534e60721bd.zip |
Leave 'OK' button visible in Leash AboutBox
The AboutBox dialog as specified in the resource file is larger than
the one we display; the dialog init routine marks several things as
non-visible, moves the 'OK' button up to where the now-invisible items
were, and shrinks the dialog's bounding rectangle.
However, the edit boxes containing copyright and version information
seem to always present as being on top of the 'OK' button, and their
background causes the button to appear almost invisible with the current
repositioning.
To keep the 'OK' button visible, reduce the amount that it is moved
(and the amount the dialog is shrunk) so that the button does not overlap
with the edit box.
ticket: 7443
tags: pullup
target_version: 1.10.4
Diffstat (limited to 'src')
-rw-r--r-- | src/windows/leash/LeashAboutBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/leash/LeashAboutBox.cpp b/src/windows/leash/LeashAboutBox.cpp index 632dc5907..d5c6be24b 100644 --- a/src/windows/leash/LeashAboutBox.cpp +++ b/src/windows/leash/LeashAboutBox.cpp @@ -268,7 +268,7 @@ BOOL CLeashAboutBox::OnInitDialog() GetDlgItem(IDC_STATIC_NO_OF_MODULES)->ShowWindow(SW_HIDE); m_LB_DLLsLoaded.ShowWindow(SW_HIDE); // shrink window, move 'OK' button - const int hideDiff = 175; + const int hideDiff = 150; RECT okRect; CWnd* pOK = GetDlgItem(IDOK); pOK->GetWindowRect(&okRect); |