Click here to Skip to main content
15,905,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
shir_k10-Sep-07 23:51
shir_k10-Sep-07 23:51 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
Naveen11-Sep-07 0:03
Naveen11-Sep-07 0:03 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
shir_k11-Sep-07 0:31
shir_k11-Sep-07 0:31 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
Naveen11-Sep-07 1:00
Naveen11-Sep-07 1:00 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
shir_k11-Sep-07 3:12
shir_k11-Sep-07 3:12 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
Naveen11-Sep-07 15:06
Naveen11-Sep-07 15:06 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
shir_k11-Sep-07 18:08
shir_k11-Sep-07 18:08 
GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
Naveen11-Sep-07 18:14
Naveen11-Sep-07 18:14 
try this. this will copy the text in the selected row to clip board.

<br />
int nItem =  m_list.GetNextItem( -1, LVNI_SELECTED );<br />
    if( -1 == nItem )<br />
    {<br />
        return;<br />
    }<br />
CString csPath;<br />
	csPath = m_list.GetItemText( nItem,0 );<br />
	OpenClipboard();<br />
	EmptyClipboard(); <br />
	int nSize = (csPath.GetLength() + 1) * sizeof(TCHAR);<br />
    HGLOBAL  hglbCopy = GlobalAlloc(GMEM_MOVEABLE, nSize ); <br />
    if (hglbCopy == NULL) <br />
    { <br />
        CloseClipboard(); <br />
        return; <br />
    } <br />
    LPTSTR lpData = (LPTSTR)GlobalLock(hglbCopy); <br />
    memcpy(lpData, csPath, nSize ); <br />
    lpData[nSize-1] = (TCHAR) 0;<br />
    GlobalUnlock(hglbCopy);<br />
    SetClipboardData( CF_UNICODETEXT, hglbCopy ); <br />
	CloseClipboard();


where m_list is the control variable for the list control


GeneralRe: CEdit* pEdit = m_Pressure.GetEditControl(); is returning Null always Pin
shir_k11-Sep-07 19:14
shir_k11-Sep-07 19:14 
Questionerror message from OLEView Pin
George_George10-Sep-07 21:04
George_George10-Sep-07 21:04 
Questiontlbexp command Pin
George_George10-Sep-07 20:32
George_George10-Sep-07 20:32 
QuestionSCM: Does it handle crashing/abruptly killed services ? Pin
Yashusid10-Sep-07 20:00
Yashusid10-Sep-07 20:00 
QuestionJava Style Socket Programming in C++ Pin
maglev_tgv10-Sep-07 19:59
maglev_tgv10-Sep-07 19:59 
AnswerRe: Java Style Socket Programming in C++ Pin
baerten10-Sep-07 23:23
baerten10-Sep-07 23:23 
QuestionFinding files Pin
Waldermort10-Sep-07 19:48
Waldermort10-Sep-07 19:48 
AnswerRe: Finding files Pin
Nishad S10-Sep-07 20:01
Nishad S10-Sep-07 20:01 
GeneralRe: Finding files Pin
Waldermort10-Sep-07 23:50
Waldermort10-Sep-07 23:50 
GeneralRe: Finding files Pin
Nishad S11-Sep-07 1:39
Nishad S11-Sep-07 1:39 
QuestionRegistry Pin
john563210-Sep-07 19:47
john563210-Sep-07 19:47 
AnswerRe: Registry Pin
Arman S.10-Sep-07 20:22
Arman S.10-Sep-07 20:22 
AnswerRe: Registry Pin
VirtualVoid.NET10-Sep-07 21:48
VirtualVoid.NET10-Sep-07 21:48 
AnswerRe: Registry Pin
David Crow11-Sep-07 3:19
David Crow11-Sep-07 3:19 
QuestionHow to get HInstance of ToolBar item?? Pin
Neo Andreson10-Sep-07 19:47
Neo Andreson10-Sep-07 19:47 
AnswerRe: How to get HInstance of ToolBar item?? Pin
Nishad S10-Sep-07 20:03
Nishad S10-Sep-07 20:03 
QuestionNeed help for network programming (ipx/udp game on Internet) Pin
followait10-Sep-07 17:09
followait10-Sep-07 17:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.