Click here to Skip to main content
15,885,435 members
Home / Discussions / COM
   

COM

 
Generalcommunication between COM objects Pin
Member 1106649721-Jul-05 2:20
Member 1106649721-Jul-05 2:20 
GeneralAggregation Pin
madness50121-Jul-05 1:16
madness50121-Jul-05 1:16 
GeneralRe: Aggregation Pin
Anuj Purwar25-Jul-05 2:00
Anuj Purwar25-Jul-05 2:00 
GeneralATL-COM: Unable to remove popup menu from MSWord Pin
mandanani21-Jul-05 1:12
mandanani21-Jul-05 1:12 
Generalchat application problem --remote connection Pin
Murat AKA20-Jul-05 9:11
Murat AKA20-Jul-05 9:11 
GeneralRe: chat application problem --remote connection Pin
I am ke xu24-Jul-05 0:08
I am ke xu24-Jul-05 0:08 
GeneralRe: chat application problem --remote connection Pin
Murat AKA24-Jul-05 4:29
Murat AKA24-Jul-05 4:29 
GeneralQuestion On Passing Data To Custom Draw Message Handler Pin
yccheok19-Jul-05 22:55
yccheok19-Jul-05 22:55 
currently, i try to have a list control (for logging message purpose) where it will highlight the entire row with red if it carry out error information. else, it will just highlight the entire row with green.

The Michael Dunn' s article on custom draw give me a good information:
http://www.codeproject.com/listctrl/lvcustomdraw.asp

However, I need some mechanism so that in my custom draw message handler, I know whether this row carry out error information or not.

I try to do the following approach. I use the lParam to store whether that row is error information row.

In the method which i insert item, I have

LVITEM lvi;
lvi.lParam = ERROR_INFORMATION;

Then, in my custom draw message handler, I do the following

NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<nmlvcustomdraw*>( pNMHDR );
// this is error message
//
if(pLVCD->nmcd.lItemlParam == ERROR_INFORMATION)

However, this approach just wont work. The lParam value I get in the custom draw message handler, isn't same as the lParam value I put in the insert item method.

Can anyone advice me how should my implementation be?

Thanks. Smile | :) Big Grin | :-D

cheok
Generalstandalone COM server (exe) not instantiating Pin
gautaminova19-Jul-05 16:48
gautaminova19-Jul-05 16:48 
GeneralIExplorer Button with menu Pin
18-Jul-05 11:34
suss18-Jul-05 11:34 
GeneralAdding dialog to Activex - VC++ Pin
urssmiling18-Jul-05 4:10
urssmiling18-Jul-05 4:10 
GeneralActiveX to server communication Pin
vinodraut18-Jul-05 1:45
vinodraut18-Jul-05 1:45 
GeneralEvents in RTC-client Pin
TheVictorious18-Jul-05 0:02
TheVictorious18-Jul-05 0:02 
GeneralActiveX Control on a Window Pin
Maddie from Dartford17-Jul-05 23:54
Maddie from Dartford17-Jul-05 23:54 
GeneralRe: ActiveX Control on a Window Pin
vishalmore19-Jul-05 3:30
vishalmore19-Jul-05 3:30 
QuestionHow to use the texture as the background of bars in mschart? Pin
luckyeagle17-Jul-05 23:46
luckyeagle17-Jul-05 23:46 
GeneralDisplay custom image format in IE Pin
Pantelis Georgiadis17-Jul-05 23:21
Pantelis Georgiadis17-Jul-05 23:21 
GeneralRe: Display custom image format in IE Pin
vishalmore20-Jul-05 2:36
vishalmore20-Jul-05 2:36 
GeneralRe: Display custom image format in IE Pin
Pantelis Georgiadis20-Jul-05 3:08
Pantelis Georgiadis20-Jul-05 3:08 
GeneralRe: Display custom image format in IE Pin
vishalmore20-Jul-05 4:05
vishalmore20-Jul-05 4:05 
GeneralRe: Display custom image format in IE Pin
vishalmore20-Jul-05 4:10
vishalmore20-Jul-05 4:10 
GeneralActiveX in C# Web Service Pin
maskeen15-Jul-05 11:16
maskeen15-Jul-05 11:16 
GeneralWant to be COM programmer Pin
urssmiling14-Jul-05 3:21
urssmiling14-Jul-05 3:21 
GeneralRe: Want to be COM programmer Pin
Jörgen Sigvardsson16-Jul-05 10:32
Jörgen Sigvardsson16-Jul-05 10:32 
GeneralRe: Want to be COM programmer Pin
urssmiling17-Jul-05 23:03
urssmiling17-Jul-05 23: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.