Question about List View Control (C++)
Posted on 2001-08-28
I have created a dialog box with a list view control
in one thread (thread 1).
and I want to send a messages to the list view from
I also passed the HWND of the list view control to the other thread.
My problems are :
1. When I try to send the LVM_INSERTITEM message to the list ctrl by SendMessge API function from the other therad, the SendMessage function does not return.
2. I have also tried to use PostMessage instead of
SendMessage, but then, the list view control shows
a characters without any connection to the
'lvItem.pszText' string that I passed to the message.
By the way :
The list view control accepts the message
with the wanted string. (I checked it with Spy++)
Please tell me what should I check to fix it ?