列表控件CListCtrl中怎么获得双击文件的路径 VC++中列表控件CListCtrl, 设置双击响应函数,通过m_ListCtrl.GetItemText()可获得双击时的文件名,通过文件名怎么获得此文件的路径呢? 请大虾帮忙!!!请大虾说的具体点!!1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 路径 不就是 你系统运行的路径吗 用getsystempath来获取 void CAPdu::OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult) { // TODO: Add your control notification handler code here if( m_brunning ) { m_brunning = 0; return; } POSITION pos; pos = m_list1.GetFirstSelectedItemPosition(); if( pos ) { char t[ 1000 ] = ""; int i = m_list1.GetNextSelectedItem( pos ); m_list1.GetItemText( i, APDU_HEAD, t, 1000 ); t[ 10 ] = 0x20; m_list1.GetItemText( i, APDU_SEND, t + 11, 990 ); m_edit1.SetSel( -1, -1 ); m_edit1.ReplaceSel( t ); m_edit1.ReplaceSel( g____crlf ); } *pResult = 0;}一个例子 关于WM_COPYDATA Unicode文本文件的处理问题。 关于模仿QQ CListCtrl问题请教! 结构体空间存储 求助一个简单的问题!! 关于UI线程的一些小问题 串口问题!!!! winsock2 网络开发中一个最关键的疑问? 图象处理中的DCT变换 谁有com概念的文章。 如何将clips与mfc结合起来,混合编程 sift提取特征值,,
{
// TODO: Add your control notification handler code here
if( m_brunning )
{
m_brunning = 0;
return;
}
POSITION pos;
pos = m_list1.GetFirstSelectedItemPosition();
if( pos )
{
char t[ 1000 ] = "";
int i = m_list1.GetNextSelectedItem( pos );
m_list1.GetItemText( i, APDU_HEAD, t, 1000 );
t[ 10 ] = 0x20;
m_list1.GetItemText( i, APDU_SEND, t + 11, 990 );
m_edit1.SetSel( -1, -1 );
m_edit1.ReplaceSel( t );
m_edit1.ReplaceSel( g____crlf );
}
*pResult = 0;
}一个例子