Click here to Skip to main content
15,892,161 members
Home / Discussions / COM
   

COM

 
GeneralRe: Is it possible to catch a com event in vb or javascript Pin
rwestgraham8-Mar-05 17:41
rwestgraham8-Mar-05 17:41 
GeneralRe: Is it possible to catch a com event in vb or javascript Pin
grinder8-Mar-05 21:18
grinder8-Mar-05 21:18 
GeneralRe: Is it possible to catch a com event in vb or javascript Pin
rwestgraham9-Mar-05 23:20
rwestgraham9-Mar-05 23:20 
GeneralRe: Is it possible to catch a com event in vb or javascript Pin
grinder13-Mar-05 19:33
grinder13-Mar-05 19:33 
GeneralDCOM event sink on Terminal Services Pin
FearlessBurner7-Mar-05 2:06
FearlessBurner7-Mar-05 2:06 
GeneralWMI -> Win32_OperatingSystem Pin
Stefak6-Mar-05 13:21
Stefak6-Mar-05 13:21 
GeneralTransparent ActiveX Control Pin
gameengineer5-Mar-05 4:22
gameengineer5-Mar-05 4:22 
GeneralRe: Transparent ActiveX Control Pin
Pinhead_Me10-Mar-05 7:58
Pinhead_Me10-Mar-05 7:58 
SJ,

I worked on controls like this a while ago. You need to make your control 'windowless' and get access to the control's parent member "m_pClientSite" via the following code:

LPOLECLIENTSITE YourCOntrol::GetClientSiteMember()
{
return COleControl::m_pClientSite;
}

once you do that, you need to tell the parent to 'refresh' the drawing area when your controls needs it. That is done by using the following code:

IOleInPlaceSiteWindowless* pSiteWindowless = NULL;
GetClientSiteMember()->QueryInterface(IID_IOleInPlaceSiteWindowless,(void **)&pSiteWindowless);

if(pSiteWindowless)
{
pSiteWindowless->InvalidateRgn(NULL, true);
}
else
{
InvalidateControl();
}

That is the starting poing, there are other items you may need to be aware of, such as when your control is 'm_bInPlaceActive' or not and maybe more details need to be addressed depending on the functionality(rendering) of your control.

I would really like to hear how, or if that works, and any other info you came accross while implementing that.

-JL

GeneralRe: Transparent ActiveX Control Pin
smjones10-Mar-05 13:49
smjones10-Mar-05 13:49 
GeneralRe: Transparent ActiveX Control Pin
smjones14-Apr-05 11:57
smjones14-Apr-05 11:57 
GeneralRe: Transparent ActiveX Control Pin
Pinhead_Me18-Apr-05 5:44
Pinhead_Me18-Apr-05 5:44 
GeneralCom-Addin Query Pin
Anonymous5-Mar-05 2:14
Anonymous5-Mar-05 2:14 
GeneralWindows Hooking. Pin
technojewel3-Mar-05 20:18
technojewel3-Mar-05 20:18 
GeneralRe: Windows Hooking. Pin
Tarundeep Singh Kalra4-Mar-05 8:15
Tarundeep Singh Kalra4-Mar-05 8:15 
GeneralRe: Windows Hooking. Pin
vishalmore15-Mar-05 19:08
vishalmore15-Mar-05 19:08 
GeneralClient/Server COM+ Application Pin
Wender Oliveira3-Mar-05 14:58
Wender Oliveira3-Mar-05 14:58 
GeneralProblem While Instantiating and calling API through COM Component Pin
Anuj Mishra2-Mar-05 18:04
Anuj Mishra2-Mar-05 18:04 
GeneralIE code download failure for dll and ActiveX control using INF and CAB file Pin
prog012-Mar-05 11:40
prog012-Mar-05 11:40 
GeneralBindIFilterFromStream Pin
cheesepirate2-Mar-05 7:02
cheesepirate2-Mar-05 7:02 
Generaldyanamically create listboxes in ATL Pin
gauravjain1-Mar-05 4:28
gauravjain1-Mar-05 4:28 
GeneralCommunication with one particular instance of an activex/com object Pin
awhit1-Mar-05 0:54
awhit1-Mar-05 0:54 
GeneralCOM and MSFlexGrid Pin
A. Karthick Arun28-Feb-05 20:34
A. Karthick Arun28-Feb-05 20:34 
GeneralCOM,OLE,AUTOMATION,ActiveX Pin
hjkjk28-Feb-05 20:16
hjkjk28-Feb-05 20:16 
GeneralCreating Schema Rowset ( OLE DB) in COM Pin
gauravjain28-Feb-05 5:47
gauravjain28-Feb-05 5:47 
Generalfft scale factor in MRI Dicom images Pin
ramtilak gattu28-Feb-05 5:34
ramtilak gattu28-Feb-05 5:34 

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.