CListCtrl中的一栏怎么加入一个ComBox??? 哈哈,是另外新建的ComBox啊!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你得先学会动态创建对话框控件,而不是光靠摆来摆去。用combox::create() 首先获得你要创建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;} vc用什么技术可以实现类似与鱼鱼桌面秀的软件 CMDIChildWnd的继承问题求解? 在线等 C++做的COM组件,传给VB一个字符数组,VC里用的是BSTR,在VB里得到的数组是LONG类型的,怎么转换? win2000P默认安装带QuikView工具吗? 请问在 XP下,如何杀死别的用户下的进程? 请教: FlashGet等软件中“下载完挂断”如何实现,提供SDK或者MFC源码更佳! ODBC API编程问题,急救!!! 谁知道Cg怎么用。 有sdk高手吗?请教一问题 请教自适应阈值的问题 以下代码有什么错?(关于DestroyWindow) 奇怪的数据库问题(使用OLEDB方式)
而不是光靠摆来摆去。
用combox::create()
再创建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;
}