c++ - Command Button Control MFC -
i'm working on chess game in vs 2013. when promote pawn piece, inquire user come in selection using command button control. now, i've designed new dialog in resource script. don't know how input of button clicked. please tell me how implement it.
idd_promotion dialogex 0, 0, 287, 123 style ds_setfont | ds_modalframe | ws_popup | ws_caption | ws_sysmenu caption "dialog" font 8, "microsoft sans serif", 400, 0, 0x0 begin command "rook",idc_rook,"button",bs_commandlink | ws_tabstop,48,37,90,25 command "bishop",idc_bishop,"button",bs_commandlink | ws_tabstop,48,72,90,25 command "queen",idc_queen,"button",bs_commandlink | ws_tabstop,170,37,100,25 command "knight",idc_knight,"button",bs_commandlink | ws_tabstop,170,72,90,25 groupbox "promote to",idc_promote,24,17,236,91 end
c++ mfc
No comments:
Post a Comment