Origial James Hoo mod to 16.04

This commit is contained in:
shunf4
2024-04-20 18:55:53 +08:00
parent 603abd5528
commit eaa3e8b48c
86 changed files with 55401 additions and 185 deletions

View File

@@ -39,23 +39,23 @@ bool CComboDialog::OnInit()
return CModalDialog::OnInit();
}
bool CComboDialog::OnSize(WPARAM /* wParam */, int xSize, int ySize)
{
int mx, my;
GetMargins(8, mx, my);
int bx1, bx2, by;
GetItemSizes(IDCANCEL, bx1, by);
GetItemSizes(IDOK, bx2, by);
int y = ySize - my - by;
int x = xSize - mx - bx1;
InvalidateRect(NULL);
MoveItem(IDCANCEL, x, y, bx1, by);
MoveItem(IDOK, x - mx - bx2, y, bx2, by);
ChangeSubWindowSizeX(_comboBox, xSize - mx * 2);
return false;
}
//bool CComboDialog::OnSize(WPARAM /* wParam */, int xSize, int ySize)
//{
// int mx, my;
// GetMargins(8, mx, my);
// int bx1, bx2, by;
// GetItemSizes(IDCANCEL, bx1, by);
// GetItemSizes(IDOK, bx2, by);
// int y = ySize - my - by;
// int x = xSize - mx - bx1;
//
// InvalidateRect(NULL);
//
// MoveItem(IDCANCEL, x, y, bx1, by);
// MoveItem(IDOK, x - mx - bx2, y, bx2, by);
// ChangeSubWindowSizeX(_comboBox, xSize - mx * 2);
// return false;
//}
void CComboDialog::OnOK()
{