ShowWindow(GetDlgItem(hDlg, PB_Bishop), \r
gameInfo.variant != VariantShogi ?\r
SW_SHOW : SW_HIDE);\r
- ShowWindow(GetDlgItem(hDlg, IDC_Yes), \r
- gameInfo.variant == VariantShogi ?\r
- SW_SHOW : SW_HIDE);\r
- ShowWindow(GetDlgItem(hDlg, IDC_No), \r
- gameInfo.variant == VariantShogi ?\r
- SW_SHOW : SW_HIDE);\r
+ if(gameInfo.variant == VariantShogi) {\r
+ SetDlgItemText(hDlg, PB_Queen, "YES");\r
+ SetDlgItemText(hDlg, PB_Knight, "NO");\r
+ SetWindowText(hDlg, "Promote?");\r
+ }\r
ShowWindow(GetDlgItem(hDlg, IDC_Centaur), \r
gameInfo.variant == VariantSuper ?\r
SW_SHOW : SW_HIDE);\r
PUSHBUTTON "K&night",PB_Knight,139,23,40,14,NOT WS_TABSTOP\r
PUSHBUTTON "&King",PB_King,4,4,40,14,NOT WS_TABSTOP\r
PUSHBUTTON "&Cancel",IDCANCEL,139,4,40,14,WS_GROUP\r
- LTEXT " YES",IDC_Yes,6,25,36,10\r
- LTEXT " NO",IDC_No,141,25,36,10\r
LTEXT "C&entaur",IDC_Centaur,12,6,25,10\r
END\r
\r