Need Help on ActiveX Control
-
Hello All Is it possible to get Handle to the Container window(Internet Explorer) of the ActiveX Control? Thanks in advance
Manish Patel. B.E. - Information Technology.
-
Hello All Is it possible to get Handle to the Container window(Internet Explorer) of the ActiveX Control? Thanks in advance
Manish Patel. B.E. - Information Technology.
The IOleInPlaceFrame[^] interface is one of the key interfaces used by the ActiveX control to communicate with its container (use the IOleInPlaceSite::GetWindowContext[^] to get hold of it). It's derived from IOleWindow[^] which has a method called IOleWindow::GetWindow[^]: this should enable you to get the job done.
Steve
modified on Friday, February 29, 2008 3:07 AM
-
The IOleInPlaceFrame[^] interface is one of the key interfaces used by the ActiveX control to communicate with its container (use the IOleInPlaceSite::GetWindowContext[^] to get hold of it). It's derived from IOleWindow[^] which has a method called IOleWindow::GetWindow[^]: this should enable you to get the job done.
Steve
modified on Friday, February 29, 2008 3:07 AM
Thanks for your kind reply. Actualy i want to minimize internet explorer wheneve my activex is loaded in IE. I am using this:
::ShowWindow(GetWindow(GW_OWNER)->GetSafeHwnd(), SW_MINIMIZE);
But This function gets fail. Is it correct way to do this? please provide me any solution to it. Once again Thanks SteveManish Patel. B.E. - Information Technology.
-
Thanks for your kind reply. Actualy i want to minimize internet explorer wheneve my activex is loaded in IE. I am using this:
::ShowWindow(GetWindow(GW_OWNER)->GetSafeHwnd(), SW_MINIMIZE);
But This function gets fail. Is it correct way to do this? please provide me any solution to it. Once again Thanks SteveManish Patel. B.E. - Information Technology.
You don’t mention what framework you’re using (if any)?
Steve
-
You don’t mention what framework you’re using (if any)?
Steve
No, i am not using any framework My activex is in pure MFC.
Manish Patel. B.E. - Information Technology.
-
No, i am not using any framework My activex is in pure MFC.
Manish Patel. B.E. - Information Technology.
manish.patel wrote:
No, i am not using any framework My activex is in pure MFC.
ROTFL. :laugh:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
manish.patel wrote:
No, i am not using any framework My activex is in pure MFC.
ROTFL. :laugh:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
Rajesh R Subramanian wrote:
ROTFL.
What you want to say??
Manish Patel. B.E. - Information Technology.
-
Rajesh R Subramanian wrote:
ROTFL.
What you want to say??
Manish Patel. B.E. - Information Technology.
I am also new to these abbreviation, but the WordWeb free dictionary helps me, ROTFL - Rolling on the floor laughing. I guess, he meant MFC is also a framework.
-
Rajesh R Subramanian wrote:
ROTFL.
What you want to say??
Manish Patel. B.E. - Information Technology.
MFC actually *is* a framework. :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
MFC actually *is* a framework. :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
Thanks for your Guidance. Up to now I am considering MFC as a Microsoft Foundation Classes. I don’t know It is a “Framework”
Manish Patel. B.E. - Information Technology.
-
Thanks for your Guidance. Up to now I am considering MFC as a Microsoft Foundation Classes. I don’t know It is a “Framework”
Manish Patel. B.E. - Information Technology.
manish.patel wrote:
Up to now I am considering MFC as a Microsoft Foundation Classes.
You're just looking at the abbreviation. You need to read up a little bit to understand that MFC is more than a bunch of classes. For example, you don't write a main() function for a program that you write in MFC, do you? So, does that mean there is no main function? You get to build a doc/view app with menus, windows, print previewing capability, etc., just with mouse clicks! Can you do it just with a few classes alone? The framework does everything for you behind the scenes. :) If that interests you, I'd recommend a few books - Programming Windows with MFC, MFC Internals. Also, see MFC in Wikipedia[^] Rajesh
-
Thanks for your Guidance. Up to now I am considering MFC as a Microsoft Foundation Classes. I don’t know It is a “Framework”
Manish Patel. B.E. - Information Technology.
Didn't ever read
MFC
documentation? It is full of sentences such as "The framework will call...". Also manyMFC
global functions, likeAfxGetApp
, have theAfx
(i.e. Application Framework EXtension) prefix. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke