Commit d49bcd4924ea8fe8a0e0892e42f326bd94865154

Authored by Peter Zhigalov
1 parent d9914774

Унифицировал внешний вид InputBox'ов

Showing 1 changed file with 6 additions and 6 deletions
src_winapi/main.cpp
... ... @@ -503,7 +503,7 @@ void on_actionDecrease_Interpolation_triggered()
503 503 void InputBox(const TCHAR * header, const TCHAR * text, int val_curr, int val_min, int val_max)
504 504 {
505 505 // Создадим окно
506   - RECT rw = { 0, 0, 200, 102 };
  506 + RECT rw = { 0, 0, 202, 94 };
507 507 AdjustWindowRect(&rw, WS_CAPTION | WS_SYSMENU, FALSE);
508 508 int box_width = rw.right - rw.left;
509 509 int box_height = rw.bottom - rw.top;
... ... @@ -523,7 +523,7 @@ void InputBox(const TCHAR * header, const TCHAR * text, int val_curr, int val_mi
523 523 CreateWindow(
524 524 WC_STATIC, text,
525 525 WS_CHILD | WS_VISIBLE | SS_CENTERIMAGE,
526   - 11, 10, 178, 25,
  526 + 11, 6, 179, 25,
527 527 hwnd_inputbox, (HMENU)INPUTBOX_LABEL_TEXT, hInstance, NULL
528 528 );
529 529  
... ... @@ -533,7 +533,7 @@ void InputBox(const TCHAR * header, const TCHAR * text, int val_curr, int val_mi
533 533 WC_EDIT, NULL,
534 534 WS_CHILD | WS_VISIBLE | ES_LEFT | WS_BORDER | ES_AUTOHSCROLL |
535 535 ES_NUMBER | WS_TABSTOP,
536   - 11, 31, 178, 25,
  536 + 11, 30, 179, 22,
537 537 hwnd_inputbox, (HMENU)INPUTBOX_SPINBOX_TEXT, hInstance, NULL
538 538 );
539 539 CreateUpDownControl(
... ... @@ -547,8 +547,8 @@ void InputBox(const TCHAR * header, const TCHAR * text, int val_curr, int val_mi
547 547 // Кнопка OK
548 548 CreateWindow(
549 549 WC_BUTTON, TEXT("OK"),
550   - WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | WS_TABSTOP,
551   - 30, 67, 74, 22,
  550 + WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON | WS_TABSTOP,
  551 + 30, 58, 75, 22,
552 552 hwnd_inputbox, (HMENU)INPUTBOX_BUTTON_OK, hInstance, NULL
553 553 );
554 554  
... ... @@ -556,7 +556,7 @@ void InputBox(const TCHAR * header, const TCHAR * text, int val_curr, int val_mi
556 556 CreateWindow(
557 557 WC_BUTTON, TEXT("Cancel"),
558 558 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | WS_TABSTOP,
559   - 113, 67, 74, 22,
  559 + 114, 58, 75, 22,
560 560 hwnd_inputbox, (HMENU)INPUTBOX_BUTTON_CANCEL, hInstance, NULL
561 561 );
562 562  
... ...