GetMasterElement method

Retrieves the master element when a markup container belongs to a document that is a child of another one (like a frame within a frameSet).


HRESULT retVal = object.GetMasterElement(ppElementMaster);


  • ppElementMaster [out]
    Type: [IHTMLElement](aa752279(v=vs.85).md)

    Address of a pointer to a variable that receives an IHTMLElement interface pointer for the interface that receives the master element. If there is no master element, ppElementMaster will be set to NULL.

Return value


If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.