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;} 跪求:如何图片数据转成或(放入)二维数组 请教 FlashGet 的图表/日志 中那些滚动的点是怎么实现啊? 谁知道如何获取系统未分页内存和分页内存的信息? 滚动视图,用什么函数。我忘拉。SetWindowScroll()吗。在线 求各位大神指导一下sprintf这个函数 请问那有《操作系统——内核与设计原理(第四版)》的影印版?高分相赠! 如何修改可以运行 CEdit类使用的问题,高手指点 请高手帮我看看这个程序,上位机接受不到数,谢谢~ 堆栈空间大小 以下代码有什么错?(关于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;
}