响应command1的函数 GetDlgItem()->SetWindowText("Visual c++"); 响应command2的函数 GetDlgItem()->SetWindowText(""); VISUAL BASIC 大概也是这个意思,利用API实现。