我在创建对话框中,加入hot key控件...请问如何获取hot key控件中内容?

解决方案 »

  1.   

    取名用CHotKeyCtrl::GetHotKeyName    
    取键值用CHotKeyCtrl::GetHotKey 
      

  2.   

    http://www.ddvip.com/program/vc/index4/194.htm
      

  3.   

    lResult = SendMessage(      // returns DWORD in lResult     
    (HWND) hWndControl,      // handle to destination control     
    UINT) HKM_GETHOTKEY,      // message ID     
    (WPARAM) wParam,      // = 0; not used, must be zero    
    (LPARAM) lParam      // = 0; not used, must be zero
    );