如题

解决方案 »

  1.   

    楼上的意思综合一下,
    自定义热键,把热键与CEdit本身的函数copy/paste结合
    或者不定义热键,在PreTranslateMessage里处理Ctrl+C/Ctrl+V
      

  2.   

    like this:void CReportCtrl::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) 
    {
    // TODO: Add your message handler code here and/or call default

    switch (nChar)
    {
    case 1: // CTRL + A .. SELECT ALL
    SelectAllItems();
    break;
    case 3: // CTRL + C .. COPY
    CopyItem();
    break;
    case 22: // CTRL + V .. PASTE
    PB_Paste();
    PasteItem();
    break;
    case 24: // CTRL + X .. CUT
    // CutItem();
    default:
    break;
    }
    CListCtrl::OnChar(nChar, nRepCnt, nFlags);
    }