我要编程实现点击对话框的按钮,只是知道对话框上面的字,比如说什么确认,取消阿.我不清楚这个按钮的ID号.请教高手了

解决方案 »

  1.   

    右击Button ---> Properties ---> ID,Caption
    双季Button ---> OK  --->响应对话框的按钮的函数
      

  2.   

    GetWindow()
    GetWindowText()
    GetClassName()GetWindowRect()
    mouse_event()
      

  3.   

    GetWindow()
    GetWindowText()
    GetClassName()GetWindowRect()
    mouse_event()
      

  4.   

    确认(IDOK),取消(IDCANCEL)《Visual C++6.0技术内幕》中有详细的
    很不错的方法
      

  5.   

    OK -> IDOK
    CANCEL -> IDCANCEL
      

  6.   

    open the button property then see Id
      

  7.   

    NextDlgCtrl()
    GetDlgCtrlID()
    GetDlgItemText()
    GetDlgCtrlItem()
    SendMessage()
      

  8.   

    就是得到窗口指针,然后给窗口发消息BN_CLICKED