⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_47901.htm

📁 vc
💻 HTM
字号:
<p>
序号:47901 发表者:James 发表日期:2003-07-25 10:55:05
<br>主题:这两个参数怎么用?
<br>内容:void CDlg1::OnClicklist1(NMHDR* pNMHDR, LRESULT* pResult) <BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;// TODO: Add your control notification handler code here<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;//<BR>&nbsp;&nbsp;&nbsp;&nbsp;*pResult = 0;<BR>}<BR>这个函数中的两个参数该如何用?<BR>我想鼠标点击该列表控件的第二列时能弹出一个对话框!
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:James 回复日期:2003-07-27 12:52:42
<br>内容:没人回答这个问题吗?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:试一试 回复日期:2003-10-09 19:37:20
<br>内容:不一定总是花费时间等人啦!<BR>在Google.com中搜索 (NMHDR* pNMHDR, LRESULT* pResult) ListView 就可以了<BR>以下是搜到的一个片段<BR>void CMyListView::OnBegindrag(NMHDR* pNMHDR, LRESULT* pResult) <BR>{<BR> NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;*pResult = 0;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;//Zeiger auf den Tree-Control ermitteln:<BR>&nbsp;&nbsp;&nbsp;&nbsp;CListCtrl &amp;cList = GetListCtrl();<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;//set source of drag:<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetApp()-&gt;cListItemDragIndex = ((NM_LISTVIEW *)pNMHDR)-&gt;iItem;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;//Create a drag image (from the source item):<BR>&nbsp;&nbsp;&nbsp;&nbsp;POINT pt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pt.x = pt.y = 8;<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetApp()-&gt;cpDragImage = cList.CreateDragImage(GetApp()-&gt;cListItemDragIndex, &amp;pt);<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetApp()-&gt;cpDragImage-&gt;BeginDrag(0, CPoint (8, 8));<BR>&nbsp;&nbsp;&nbsp;&nbsp;pt = ((NM_LISTVIEW *)pNMHDR)-&gt;ptAction;<BR>&nbsp;&nbsp;&nbsp;&nbsp;ClientToScreen( &amp;pt );<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetApp()-&gt;cpDragImage-&gt;DragEnter(NULL, pt);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;//Initialize:<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetApp()-&gt;cDragging = TRUE;<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetApp()-&gt;cListItemDropIndex = -1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetApp()-&gt;cpDragWnd = &amp;cList;<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetApp()-&gt;cpDropWnd = NULL;<BR>}//OnBegindrag<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:James 回复日期:2003-10-10 15:26:37
<br>内容:这样的找答案很强啊!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -