Click here to Skip to main content
15,890,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: my problem is related to list control Pin
Naveen14-Nov-07 22:24
Naveen14-Nov-07 22:24 
GeneralRe: my problem is related to list control Pin
Nelek15-Nov-07 0:14
protectorNelek15-Nov-07 0:14 
GeneralRe: my problem is related to list control Pin
Naveen15-Nov-07 0:41
Naveen15-Nov-07 0:41 
GeneralRe: my problem is related to list control Pin
Nelek15-Nov-07 20:49
protectorNelek15-Nov-07 20:49 
AnswerRe: my problem is related to list control Pin
Naveen14-Nov-07 21:21
Naveen14-Nov-07 21:21 
GeneralRe: my problem is related to list control Pin
rajneshmalik16-Nov-07 1:38
rajneshmalik16-Nov-07 1:38 
GeneralRe: my problem is related to list control Pin
Naveen18-Nov-07 16:28
Naveen18-Nov-07 16:28 
QuestionUniquely select and double click an item in the List View Pin
scody14-Nov-07 17:10
scody14-Nov-07 17:10 
Hi,

I am new to Windows programming.

I am trying to uniquely select and double click an item in the list view (SysListView32) in third party software. This task is somewhat similar to MyProgram trying to double click an item in a ControlPanel-like list view.

To accomplish this I am sending a LVM_FINDITEM message to get the item index of the item to be double clicked.

LVFINDINFO lvfi;<br />
ZeroMemory(&lvfi, sizeof(LVFINDINFO));<br />
lvfi.flags = LVFI_STRING;<br />
lvfi.psz = (LPCTSTR)"Item Name";<br />
<br />
int itemIndex = ::SendMessage( aControlHWnd, LVM_FINDITEM, (WPARAM)(int)(iStart), (LPARAM)(const LVFINDINFO *)(&lvfi));


This send message is causing a runtime error. After going through some forums and message boards I found that this is due to one of the message parameter which is a pointer to a structure, as you cannot pass a pointer-to-memory to another process. Sigh | :sigh:

Now I would like to know how to custom marshal this message to the other process? Confused | :confused:

OR

Any alternative solution to uniquely select and double click an item in the list view.

Any idea or solution to this problem is greatly appreciated. Thanks in advance.
AnswerRe: Uniquely select and double click an item in the List View Pin
Llasus14-Nov-07 17:18
Llasus14-Nov-07 17:18 
GeneralRe: Uniquely select and double click an item in the List View Pin
scody14-Nov-07 17:40
scody14-Nov-07 17:40 
GeneralRe: Uniquely select and double click an item in the List View Pin
Llasus14-Nov-07 17:50
Llasus14-Nov-07 17:50 
GeneralRe: Uniquely select and double click an item in the List View Pin
scody14-Nov-07 18:10
scody14-Nov-07 18:10 
GeneralRe: Uniquely select and double click an item in the List View Pin
Llasus14-Nov-07 19:55
Llasus14-Nov-07 19:55 
GeneralRe: Uniquely select and double click an item in the List View Pin
Llasus14-Nov-07 20:12
Llasus14-Nov-07 20:12 
GeneralRe: Uniquely select and double click an item in the List View Pin
jhwurmbach15-Nov-07 0:53
jhwurmbach15-Nov-07 0:53 
QuestionHow to paint the window when some other window over it? [modified] Pin
whiteclouds14-Nov-07 15:53
whiteclouds14-Nov-07 15:53 
AnswerRe: How to paint the window when some other window over it? Pin
Llasus14-Nov-07 17:52
Llasus14-Nov-07 17:52 
GeneralRe: How to paint the window when some other window over it? Pin
whiteclouds14-Nov-07 18:16
whiteclouds14-Nov-07 18:16 
GeneralRe: How to paint the window when some other window over it? Pin
Llasus14-Nov-07 18:39
Llasus14-Nov-07 18:39 
GeneralRe: How to paint the window when some other window over it? Pin
whiteclouds14-Nov-07 19:01
whiteclouds14-Nov-07 19:01 
GeneralRe: How to paint the window when some other window over it? Pin
Llasus14-Nov-07 19:07
Llasus14-Nov-07 19:07 
GeneralRe: How to paint the window when some other window over it? Pin
whiteclouds14-Nov-07 19:42
whiteclouds14-Nov-07 19:42 
AnswerRe: How to paint the window when some other window over it? Pin
Nelek14-Nov-07 20:14
protectorNelek14-Nov-07 20:14 
QuestionHow to run command line from MFC program? Pin
TooShy2Talk14-Nov-07 13:56
TooShy2Talk14-Nov-07 13:56 
AnswerRe: How to run command line from MFC program? Pin
Chris Losinger14-Nov-07 14:03
professionalChris Losinger14-Nov-07 14:03 

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.