Click here to Skip to main content
16,008,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDundas Ultimate Diagram Pin
Jim Weiss11-Jul-01 6:26
Jim Weiss11-Jul-01 6:26 
GeneralCompile Error, Help!!! Pin
Nick Armstrong11-Jul-01 5:11
Nick Armstrong11-Jul-01 5:11 
GeneralATL Pin
KingsGambit11-Jul-01 5:11
KingsGambit11-Jul-01 5:11 
GeneralRe: ATL Pin
11-Jul-01 5:51
suss11-Jul-01 5:51 
GeneralRe: ATL Pin
11-Jul-01 5:51
suss11-Jul-01 5:51 
GeneralRe: ATL Pin
11-Jul-01 5:51
suss11-Jul-01 5:51 
GeneralRe: ATL Pin
KingsGambit11-Jul-01 18:03
KingsGambit11-Jul-01 18:03 
GeneralIHTMLElement and IHTMLElement2 and IHTMLWindow2 Pin
Oguzhan ERKAN11-Jul-01 4:53
Oguzhan ERKAN11-Jul-01 4:53 
Hi All,
My problem is about casting between these types.
the scenario is below.
getdocument -> getactiveelement ->
"it's a frame" I need a way of casting this IHTMLElement to IHTMLElement2 or to IHTMLWindow2
/*
IHTMLElement* pa_el;
...get_activeelement(&pa_el);
CComQIPtr<ihtmlelement2,&iid_ihtmlelement2> pa_el2(pa_el);

I have a dispatch here in pa_el2 but it seems as something is wrong because when I call doScroll, I get errors... if I cast to IHTMLWindow2... it simply returns NULL... (myframe == null)
CComQIPtr<ihtmlwindow2,&iid_ihtmlwindow2> myframe(pa_el);

How can I access to a frame object if I have it as an IHTMLElement?

Please Help...
GeneralRe: IHTMLElement and IHTMLElement2 and IHTMLWindow2 Pin
11-Jul-01 8:29
suss11-Jul-01 8:29 
GeneralRe: IHTMLElement and IHTMLElement2 and IHTMLWindow2 Pin
Oguzhan ERKAN11-Jul-01 20:49
Oguzhan ERKAN11-Jul-01 20:49 
GeneralCFileFind question (Idiot) Pin
Michael Martin11-Jul-01 4:46
professionalMichael Martin11-Jul-01 4:46 
GeneralRe: CFileFind question (Idiot) Pin
11-Jul-01 5:24
suss11-Jul-01 5:24 
GeneralRe: CFileFind question (Idiot) Pin
Michael Martin11-Jul-01 14:47
professionalMichael Martin11-Jul-01 14:47 
GeneralRe: CFileFind question (Idiot) Pin
Malcolm McMahon13-Jul-01 2:43
Malcolm McMahon13-Jul-01 2:43 
QuestionHow to delete a directory Pin
Djibril11-Jul-01 3:46
professionalDjibril11-Jul-01 3:46 
GeneralSystem modal box when the app crashes Pin
GregT11-Jul-01 2:54
GregT11-Jul-01 2:54 
GeneralRe: System modal box when the app crashes Pin
Tomasz Sowinski11-Jul-01 3:08
Tomasz Sowinski11-Jul-01 3:08 
GeneralStatic members/methods (Beginner) Pin
Jimmy Ehrnström11-Jul-01 1:40
Jimmy Ehrnström11-Jul-01 1:40 
GeneralRe: Static members/methods (Beginner) Pin
Tomasz Sowinski11-Jul-01 1:54
Tomasz Sowinski11-Jul-01 1:54 
GeneralRe: Static members/methods (Beginner) Pin
Tomasz Sowinski11-Jul-01 1:58
Tomasz Sowinski11-Jul-01 1:58 
GeneralRe: Static members/methods (Beginner) Pin
Jimmy Ehrnström11-Jul-01 2:13
Jimmy Ehrnström11-Jul-01 2:13 
GeneralEnumerating messages Pin
Gennady Oster11-Jul-01 1:15
Gennady Oster11-Jul-01 1:15 
GeneralRe: Enumerating messages Pin
Tomasz Sowinski11-Jul-01 1:46
Tomasz Sowinski11-Jul-01 1:46 
GeneralRe: Enumerating messages Pin
Gennady Oster11-Jul-01 2:03
Gennady Oster11-Jul-01 2:03 
GeneralRe: Enumerating messages Pin
Tomasz Sowinski11-Jul-01 2:12
Tomasz Sowinski11-Jul-01 2:12 

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.