Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAnother Stupid Question? Pin
Joseph Marzbani1-Apr-09 19:35
Joseph Marzbani1-Apr-09 19:35 
AnswerRe: Another Stupid Question? Pin
«_Superman_»1-Apr-09 19:45
professional«_Superman_»1-Apr-09 19:45 
AnswerRe: Another Stupid Question? Pin
Joseph Marzbani1-Apr-09 20:12
Joseph Marzbani1-Apr-09 20:12 
JokeRe: Another Stupid Question? Pin
Iain Clarke, Warrior Programmer2-Apr-09 6:15
Iain Clarke, Warrior Programmer2-Apr-09 6:15 
AnswerRe: Another Stupid Question? Pin
Maxwell Chen1-Apr-09 20:24
Maxwell Chen1-Apr-09 20:24 
GeneralRe: Another Stupid Question? Pin
vital_parsley1-Apr-09 21:46
vital_parsley1-Apr-09 21:46 
AnswerRe: Another Stupid Question? Pin
Joseph Marzbani1-Apr-09 22:53
Joseph Marzbani1-Apr-09 22:53 
QuestionWindows Message API problem for LVM_GETITEMTEXT Pin
Joshi, Rushikesh1-Apr-09 19:30
professionalJoshi, Rushikesh1-Apr-09 19:30 
Hi All,

I am trying to read text from ListView of other application.

I have created a demo application which is working fine for all listview (FolderView/ Winzip Listview control and listview of some application), but it is not working for a particular Listview.

I am able to get the RowCounts/ Column Counts but I am not able to read text.

Below is my code which I am executing to get ListItem.

The original code is in VB6, but Message API code/messages are similar in VC++/MFC.

<pre>Private Const LVM_FIRST = &amp;H1000
Private Const LVM_GETITEMCOUNT = (LVM_FIRST + 4)

Private Const LVM_GETITEM = (LVM_FIRST + 5)
Private Const LVM_GETSTRINGWIDTH = (LVM_FIRST + 17)
Private Const LVM_GETCOLUMN = (LVM_FIRST + 25)
Private Const LVM_GETITEMTEXT = (LVM_FIRST + 45)

strLength = SendMessage(hWindow, LVM_GETITEMTEXT, iItem, ByVal pMyItemMemory)</pre>

Above code is working fine for other listview, and strLength is returning currect length of text of the List item.

I tried to debug, and understand nature of window (Listview Window) and I observed that all other listview where it is working fine having Windows Proc as Unicode and for list where it is not working having Windows Proc as ANSI (I got this information using Windows Spy++ utility).

My understanding is to get listview item for ANSI strings there would be different message needs to pass.

I appreciate your time and thanking you for any help or direction.

Regards
Rushi
AnswerRe: Windows Message API problem for LVM_GETITEMTEXT Pin
«_Superman_»1-Apr-09 19:49
professional«_Superman_»1-Apr-09 19:49 
GeneralRe: Windows Message API problem for LVM_GETITEMTEXT Pin
Joshi, Rushikesh1-Apr-09 23:44
professionalJoshi, Rushikesh1-Apr-09 23:44 
Questionhow to transfer file between windows and linux Pin
chen10001-Apr-09 18:58
chen10001-Apr-09 18:58 
AnswerRe: how to transfer file between windows and linux Pin
Stuart Dootson1-Apr-09 22:23
professionalStuart Dootson1-Apr-09 22:23 
Questionscaler deleting destructor Pin
Deepu Antony1-Apr-09 18:34
Deepu Antony1-Apr-09 18:34 
AnswerRe: scaler deleting destructor Pin
Maxwell Chen1-Apr-09 19:23
Maxwell Chen1-Apr-09 19:23 
GeneralRe: scaler deleting destructor Pin
Deepu Antony1-Apr-09 19:48
Deepu Antony1-Apr-09 19:48 
GeneralRe: scaler deleting destructor Pin
Maxwell Chen1-Apr-09 20:19
Maxwell Chen1-Apr-09 20:19 
QuestionlbuttonDown out of a mode window, witch message is spring? Pin
coderormnger1-Apr-09 16:35
coderormnger1-Apr-09 16:35 
AnswerRe: lbuttonDown out of a mode window, witch message is spring? Pin
Nishad S1-Apr-09 19:48
Nishad S1-Apr-09 19:48 
QuestionUsing 2 thread i receive a message " Access violation reading location 0x0000001c ". The cmd that generate the error is simply CString utilization... Pin
SNArruda1-Apr-09 13:02
SNArruda1-Apr-09 13:02 
AnswerRe: Using 2 thread i receive a message " Access violation reading location 0x0000001c ". The cmd that generate the error is simply CString utilization... Pin
Stuart Dootson1-Apr-09 13:33
professionalStuart Dootson1-Apr-09 13:33 
GeneralRe: Using 2 thread i receive a message " Access violation reading location 0x0000001c ". The cmd that generate the error is simply CString utilization... Pin
SNArruda1-Apr-09 14:31
SNArruda1-Apr-09 14:31 
GeneralRe: Using 2 thread i receive a message " Access violation reading location 0x0000001c ". The cmd that generate the error is simply CString utilization... Pin
Stuart Dootson1-Apr-09 21:44
professionalStuart Dootson1-Apr-09 21:44 
AnswerRe: Using 2 thread i receive a message " Access violation reading location 0x0000001c ". The cmd that generate the error is simply CString utilization... Pin
ThatsAlok1-Apr-09 18:19
ThatsAlok1-Apr-09 18:19 
GeneralRe: Using 2 thread i receive a message " Access violation reading location 0x0000001c ". The cmd that generate the error is simply CString utilization... Pin
SNArruda2-Apr-09 14:30
SNArruda2-Apr-09 14:30 
QuestionHow can I use GetModify/SetModify within CRichEditView Pin
Joseph Marzbani1-Apr-09 11:36
Joseph Marzbani1-Apr-09 11:36 

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.