📄 subject_47901.htm
字号:
<p>
序号:47901 发表者:James 发表日期:2003-07-25 10:55:05
<br>主题:这两个参数怎么用?
<br>内容:void CDlg1::OnClicklist1(NMHDR* pNMHDR, LRESULT* pResult) <BR>{<BR> // TODO: Add your control notification handler code here<BR><BR> //<BR> *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> <BR> *pResult = 0;<BR><BR> //Zeiger auf den Tree-Control ermitteln:<BR> CListCtrl &cList = GetListCtrl();<BR><BR> //set source of drag:<BR> GetApp()->cListItemDragIndex = ((NM_LISTVIEW *)pNMHDR)->iItem;<BR><BR> //Create a drag image (from the source item):<BR> POINT pt;<BR> pt.x = pt.y = 8;<BR> GetApp()->cpDragImage = cList.CreateDragImage(GetApp()->cListItemDragIndex, &pt);<BR> GetApp()->cpDragImage->BeginDrag(0, CPoint (8, 8));<BR> pt = ((NM_LISTVIEW *)pNMHDR)->ptAction;<BR> ClientToScreen( &pt );<BR> GetApp()->cpDragImage->DragEnter(NULL, pt);<BR><BR> //Initialize:<BR> GetApp()->cDragging = TRUE;<BR> GetApp()->cListItemDropIndex = -1;<BR> GetApp()->cpDragWnd = &cList;<BR> GetApp()->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 + -