Click here to Skip to main content
16,004,919 members
Home / Discussions / COM
   

COM

 
QuestionHow can I initialize tapiFax Pin
GuruVN13-Jun-04 19:23
GuruVN13-Jun-04 19:23 
QuestionHow to Create a COM object from a nominated EXE Pin
Guy le Mar8-Jun-04 15:51
Guy le Mar8-Jun-04 15:51 
GeneralPassing BSTR and Short variables in a function Pin
tommcf8-Jun-04 13:52
tommcf8-Jun-04 13:52 
GeneralRe: Passing BSTR and Short variables in a function Pin
Anonymous9-Jun-04 19:40
Anonymous9-Jun-04 19:40 
Questionhow to create a COM object Pin
iceman117-Jun-04 17:17
iceman117-Jun-04 17:17 
QuestionDownload my .ocx and 2 depending dll’s? Pin
anderslundsgard6-Jun-04 21:02
anderslundsgard6-Jun-04 21:02 
GeneralImplementing Span tag Pin
Member 5281555-Jun-04 0:22
Member 5281555-Jun-04 0:22 
GeneralRe: Implementing Span tag Pin
Andrew Quinn AUS6-Jun-04 22:23
Andrew Quinn AUS6-Jun-04 22:23 
Hi Lokesh,

Not too sure what you are after but here I've done an example that may be what you are looking for:

MSHTML::IHTMLDocument2Ptr spDoc(m_ctlWeb1.GetDocument());
if (spDoc)
{
    MSHTML::IHTMLDocument3Ptr spDoc3 = spDoc;
    if (spDoc3)
    {
        MSHTML::IHTMLElementPtr spElem = spDoc3->getElementById(_bstr_t("idSpan1"));
        if (spElem)
        {
            spElem->innerText = _bstr_t("Hello There");
            MSHTML::IHTMLStylePtr spElemStyle = spElem->style;
            if (spElemStyle)
            {
                spElemStyle->textDecorationOverline = true;
            }
        }
    }
}


So in the code above we look for an element called 'idSpan1', set the text, and then set the text decoration style to be Overline. Hope this is near the mark.

For further style information go to MSDN and look at the following interfaces:

IHTMLStyle
IHTMLStyle2
IHTMLStyle3
IHTMLStyle4


Hope this helps,
Andy
QuestionHow to call methods of an appobject directly? Pin
Roozbeh693-Jun-04 18:32
professionalRoozbeh693-Jun-04 18:32 
AnswerRe: How to call methods of an appobject directly? Pin
Andrew Quinn AUS3-Jun-04 22:15
Andrew Quinn AUS3-Jun-04 22:15 
GeneralAutomating Office Pin
no_reg_name3-Jun-04 6:14
no_reg_name3-Jun-04 6:14 
GeneralRe: Automating Office Pin
sas22223-Jun-04 9:27
sas22223-Jun-04 9:27 
GeneralRe: Automating Office Pin
sas22223-Jun-04 9:32
sas22223-Jun-04 9:32 
GeneralRe: Automating Office Pin
no_reg_name3-Jun-04 23:02
no_reg_name3-Jun-04 23:02 
GeneralRe: Automating Office Pin
Rory Solley3-Jun-04 22:14
Rory Solley3-Jun-04 22:14 
GeneralRe: Automating Office Pin
no_reg_name3-Jun-04 23:01
no_reg_name3-Jun-04 23:01 
Generalpassing array to com Interface Pin
smartcoder2-Jun-04 9:31
smartcoder2-Jun-04 9:31 
GeneralRe: passing array to com Interface Pin
Andrew Quinn AUS3-Jun-04 4:18
Andrew Quinn AUS3-Jun-04 4:18 
GeneralCOM Interface Hooking Pin
hardboy1111-Jun-04 9:13
hardboy1111-Jun-04 9:13 
GeneralRe: COM Interface Hooking Pin
Anonymous1-Jun-04 11:12
Anonymous1-Jun-04 11:12 
Generalfirewall Pin
shahrokh nabavi1-Jun-04 7:12
shahrokh nabavi1-Jun-04 7:12 
Generalhandwritten signature authentication pro Pin
yep yin31-May-04 20:49
yep yin31-May-04 20:49 
GeneralAsync Sockets in a COM Dll/OCX Pin
shekar_raja31-May-04 17:11
shekar_raja31-May-04 17:11 
GeneralConverting from STA to MTA Pin
mahvk31-May-04 13:45
mahvk31-May-04 13:45 
GeneralRe: Converting from STA to MTA Pin
Rory Solley1-Jun-04 22:06
Rory Solley1-Jun-04 22:06 

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.