Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ToolBar problem Pin
Nishad S4-Apr-07 20:26
Nishad S4-Apr-07 20:26 
GeneralRe: ToolBar problem Pin
david bagaturia4-Apr-07 20:34
david bagaturia4-Apr-07 20:34 
AnswerRe: ToolBar problem Pin
Nibu babu thomas4-Apr-07 20:30
Nibu babu thomas4-Apr-07 20:30 
GeneralRe: ToolBar problem Pin
david bagaturia4-Apr-07 20:44
david bagaturia4-Apr-07 20:44 
Questioncant open "file.lib" after compilling Pin
sonavi4-Apr-07 19:34
sonavi4-Apr-07 19:34 
AnswerRe: cant open "file.lib" after compilling Pin
Nibu babu thomas4-Apr-07 20:58
Nibu babu thomas4-Apr-07 20:58 
Questionstoping particular selected thread. Pin
neha.agarwal274-Apr-07 19:33
neha.agarwal274-Apr-07 19:33 
AnswerRe: stoping particular selected thread. Pin
Naveen4-Apr-07 20:37
Naveen4-Apr-07 20:37 
You need to keep the pThread corresponding to each row in list control. List control allows you to keep a usedefine DWORD value corresponding to each row using the funtion CListCtrl::SetItemData()

Suppose you started a thread for item 1 and you got a pointer pThread of type CWinThread. Keep that pointer in the 1 st row

m_list.SetItemData( 1, (DWORD)pThread);

So when you want to terminate the thread corresponding to the row 1 just use

CWinThread *pThread= (CWinThread*)m_List.GetItemData( 1 );<br />
if( 0 != pThread )<br />
pThread->PostThreadMessage(WM_QUIT, NULL, NULL);


nave

Questionpopup menu Pin
deeps_cute4-Apr-07 17:55
deeps_cute4-Apr-07 17:55 
AnswerRe: popup menu Pin
Hamid_RT4-Apr-07 18:35
Hamid_RT4-Apr-07 18:35 
AnswerRe: popup menu Pin
Naveen4-Apr-07 18:38
Naveen4-Apr-07 18:38 
GeneralRe: popup menu Pin
deeps_cute4-Apr-07 20:34
deeps_cute4-Apr-07 20:34 
GeneralRe: popup menu Pin
Naveen4-Apr-07 20:44
Naveen4-Apr-07 20:44 
GeneralRe: popup menu Pin
deeps_cute4-Apr-07 20:54
deeps_cute4-Apr-07 20:54 
GeneralRe: popup menu Pin
Naveen4-Apr-07 21:53
Naveen4-Apr-07 21:53 
GeneralRe: popup menu Pin
deeps_cute5-Apr-07 1:00
deeps_cute5-Apr-07 1:00 
GeneralRe: popup menu Pin
Naveen5-Apr-07 1:12
Naveen5-Apr-07 1:12 
QuestionDynamically Extending Arrays? Pin
chown4-Apr-07 17:18
chown4-Apr-07 17:18 
AnswerRe: Dynamically Extending Arrays? Pin
GameProfessor4-Apr-07 17:25
GameProfessor4-Apr-07 17:25 
AnswerRe: Dynamically Extending Arrays? Pin
William.Wang4-Apr-07 22:59
William.Wang4-Apr-07 22:59 
QuestionHow to create indefinite number of UI-thread with MFC Pin
GameProfessor4-Apr-07 16:41
GameProfessor4-Apr-07 16:41 
AnswerRe: How to create indefinite number of UI-thread with MFC Pin
Naveen4-Apr-07 17:24
Naveen4-Apr-07 17:24 
QuestionTrying to get my LinkedList class to compile... Pin
Pat Munns4-Apr-07 15:54
Pat Munns4-Apr-07 15:54 
AnswerRe: Trying to get my LinkedList class to compile... Pin
John R. Shaw4-Apr-07 19:15
John R. Shaw4-Apr-07 19:15 
GeneralRe: Trying to get my LinkedList class to compile... Pin
Pat Munns4-Apr-07 20:45
Pat Munns4-Apr-07 20:45 

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.