Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalextract a substring from CString Pin
Tryhard26-Sep-01 19:02
Tryhard26-Sep-01 19:02 
GeneralRe: extract a substring from CString Pin
Christian Graus26-Sep-01 19:12
protectorChristian Graus26-Sep-01 19:12 
QuestionHOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
26-Sep-01 16:55
suss26-Sep-01 16:55 
AnswerRe: HOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
Christian Graus26-Sep-01 17:22
protectorChristian Graus26-Sep-01 17:22 
GeneralRe: HOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
26-Sep-01 19:32
suss26-Sep-01 19:32 
GeneralRe: HOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
Christian Graus26-Sep-01 19:43
protectorChristian Graus26-Sep-01 19:43 
GeneralMultiple Processes: Threads, Messages, Etc Pin
Eric Sanchez26-Sep-01 16:28
Eric Sanchez26-Sep-01 16:28 
GeneralRe: Multiple Processes: Threads, Messages, Etc Pin
Michael Dunn26-Sep-01 17:02
sitebuilderMichael Dunn26-Sep-01 17:02 
Pass the HWND of the list control to your worker thread. You can then use the straight APIs to access the list (sending messages is safe between threads in the same process), or make a local CListCtrl variable and attach it to the window handle, if you prefer using CListCtrl methods.
UINT ThreadProc(void* pv)
{
CListCtrl list;
 
  list.Attach ( (HWND) pv );
  // ...
  
  // Don't forget to detach or the CListCtrl destructor will destroy
  // the control.
  list.Detach();
  
  return retcode;
}


--Mike--
http://home.inreach.com/mdunn/
Trillian: What are you supposed to do with a manically depressed robot?
Marvin: You think you've got problems. What are you supposed to do if you are a manically depressed robot?
GeneralRe: Multiple Processes: Threads, Messages, Etc Pin
Eric Sanchez27-Sep-01 2:47
Eric Sanchez27-Sep-01 2:47 
GeneralBitmap Pin
26-Sep-01 15:16
suss26-Sep-01 15:16 
GeneralRe: Bitmap Pin
Christian Graus26-Sep-01 15:54
protectorChristian Graus26-Sep-01 15:54 
General2K and Tasks Pin
Christopher Lord26-Sep-01 15:15
Christopher Lord26-Sep-01 15:15 
GeneralRe: 2K and Tasks Pin
Tomasz Sowinski27-Sep-01 0:31
Tomasz Sowinski27-Sep-01 0:31 
GeneralRe: 2K and Tasks Pin
Christopher Lord27-Sep-01 0:40
Christopher Lord27-Sep-01 0:40 
GeneralRe: 2K and Tasks Pin
Tomasz Sowinski27-Sep-01 0:50
Tomasz Sowinski27-Sep-01 0:50 
GeneralRe: 2K and Tasks Pin
Christopher Lord27-Sep-01 0:53
Christopher Lord27-Sep-01 0:53 
GeneralRe: 2K and Tasks Pin
Anders Molin27-Sep-01 1:02
professionalAnders Molin27-Sep-01 1:02 
QuestionNeed help with d-heap analysis? Pin
26-Sep-01 11:29
suss26-Sep-01 11:29 
QuestionHow do I maximize a child frame in code? Pin
26-Sep-01 10:39
suss26-Sep-01 10:39 
AnswerRe: How do I maximize a child frame in code? Pin
26-Sep-01 10:45
suss26-Sep-01 10:45 
GeneralRe: How do I maximize a child frame in code? Pin
mspitzer26-Sep-01 11:00
mspitzer26-Sep-01 11:00 
AnswerRe: How do I maximize a child frame in code? Pin
Tomasz Sowinski27-Sep-01 0:34
Tomasz Sowinski27-Sep-01 0:34 
Generalseveral restarts when installing Windows Pin
Peter Molnar26-Sep-01 9:48
Peter Molnar26-Sep-01 9:48 
GeneralRe: several restarts when installing Windows Pin
Carlos Antollini26-Sep-01 10:06
Carlos Antollini26-Sep-01 10:06 
GeneralRe: several restarts when installing Windows Pin
Tim Smith26-Sep-01 10:37
Tim Smith26-Sep-01 10:37 

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.