哈哈,是另外新建的ComBox啊!!

解决方案 »

  1.   

    你得先学会动态创建对话框控件,
    而不是光靠摆来摆去。
    用combox::create()
      

  2.   

    首先获得你要创建combox的位置 
    再创建combox,并把它放置在那
    void CYouListCtrl::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult) 
    {
    // TODO: Add your control notification handler code here
    *pResult = 0; m_iRow = m_iCol = -1; CRect rc;
    CPoint pt;
    GetCursorPos(&pt);
    ScreenToClient(&pt); int iRow = GetTopIndex() - 1, R = GetItemCount();
    while(++iRow < R)
    {
    GetItemRect(iRow, &rc, LVIR_BOUNDS);
    if (rc.PtInRect(pt)) break;
    }
    if (iRow >= R) return; int iCol = -1, w = 0;
    while(++iCol >= 0 && (w = GetColumnWidth(iCol)) > 0)
    {
    rc.right = rc.left + w;
    if (rc.PtInRect(pt)) break;
    rc.left = rc.right;
    }
    if (w <= 0) return;          m_Combox.create(....)
              m_Combox.MoveWindow(rc)
                  
    *pResult = TRUE;
    }