OSDN Git Service

Fix Sign Off button disappare when move split bar
authorFrank Li <lznuaa@gmail.com>
Sat, 29 Nov 2008 14:37:07 +0000 (22:37 +0800)
committerFrank Li <lznuaa@gmail.com>
Sat, 29 Nov 2008 14:37:07 +0000 (22:37 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
Resources/TortoiseProcENG.rc
TortoiseProc/CommitDlg.cpp
TortoiseProc/resource.h

index 2265151..aa9ee11 100644 (file)
Binary files a/Resources/TortoiseProcENG.rc and b/Resources/TortoiseProcENG.rc differ
index 1046937..0c5e455 100644 (file)
@@ -91,7 +91,7 @@ BEGIN_MESSAGE_MAP(CCommitDlg, CResizableStandAloneDialog)
        ON_WM_TIMER()\r
     ON_WM_SIZE()\r
        ON_STN_CLICKED(IDC_EXTERNALWARNING, &CCommitDlg::OnStnClickedExternalwarning)\r
-       ON_BN_CLICKED(IDC_SIGN_OFF, &CCommitDlg::OnBnClickedSignOff)\r
+       ON_BN_CLICKED(IDC_SIGNOFF, &CCommitDlg::OnBnClickedSignOff)\r
        ON_STN_CLICKED(IDC_COMMITLABEL, &CCommitDlg::OnStnClickedCommitlabel)\r
 END_MESSAGE_MAP()\r
 \r
@@ -205,7 +205,7 @@ BOOL CCommitDlg::OnInitDialog()
        AddAnchor(IDC_MESSAGEGROUP, TOP_LEFT, TOP_RIGHT);\r
 //     AddAnchor(IDC_HISTORY, TOP_LEFT);\r
        AddAnchor(IDC_LOGMESSAGE, TOP_LEFT, TOP_RIGHT);\r
-       \r
+       AddAnchor(IDC_SIGNOFF,   TOP_RIGHT);\r
        AddAnchor(IDC_LISTGROUP, TOP_LEFT, BOTTOM_RIGHT);\r
        AddAnchor(IDC_SPLITTER, TOP_LEFT, TOP_RIGHT);\r
        AddAnchor(IDC_FILELIST, TOP_LEFT, BOTTOM_RIGHT);\r
@@ -218,6 +218,7 @@ BOOL CCommitDlg::OnInitDialog()
        AddAnchor(IDOK, BOTTOM_RIGHT);\r
        AddAnchor(IDCANCEL, BOTTOM_RIGHT);\r
        AddAnchor(IDHELP, BOTTOM_RIGHT);\r
+       \r
        if (hWndExplorer)\r
                CenterWindow(CWnd::FromHandle(hWndExplorer));\r
        EnableSaveRestore(_T("CommitDlg"));\r
@@ -1365,17 +1366,20 @@ void CCommitDlg::DoSize(int delta)
        RemoveAnchor(IDC_MESSAGEGROUP);\r
        RemoveAnchor(IDC_LOGMESSAGE);\r
        RemoveAnchor(IDC_SPLITTER);\r
+       RemoveAnchor(IDC_SIGNOFF);\r
        RemoveAnchor(IDC_LISTGROUP);\r
        RemoveAnchor(IDC_FILELIST);\r
        CSplitterControl::ChangeHeight(&m_cLogMessage, delta, CW_TOPALIGN);\r
        CSplitterControl::ChangeHeight(GetDlgItem(IDC_MESSAGEGROUP), delta, CW_TOPALIGN);\r
        CSplitterControl::ChangeHeight(&m_ListCtrl, -delta, CW_BOTTOMALIGN);\r
        CSplitterControl::ChangeHeight(GetDlgItem(IDC_LISTGROUP), -delta, CW_BOTTOMALIGN);\r
+       CSplitterControl::ChangePos(GetDlgItem(IDC_SIGNOFF),0,delta);\r
        AddAnchor(IDC_MESSAGEGROUP, TOP_LEFT, TOP_RIGHT);\r
        AddAnchor(IDC_LOGMESSAGE, TOP_LEFT, TOP_RIGHT);\r
        AddAnchor(IDC_SPLITTER, TOP_LEFT, TOP_RIGHT);\r
        AddAnchor(IDC_LISTGROUP, TOP_LEFT, BOTTOM_RIGHT);\r
        AddAnchor(IDC_FILELIST, TOP_LEFT, BOTTOM_RIGHT);\r
+       AddAnchor(IDC_SIGNOFF,TOP_RIGHT);\r
        ArrangeLayout();\r
        // adjust the minimum size of the dialog to prevent the resizing from\r
        // moving the list control too far down.\r
index 5c96cee..6e9a4a9 100644 (file)
Binary files a/TortoiseProc/resource.h and b/TortoiseProc/resource.h differ