Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralC++ IO Library Pin
Justin Turney30-May-03 3:56
Justin Turney30-May-03 3:56 
GeneralRe: C++ IO Library Pin
valikac30-May-03 6:13
valikac30-May-03 6:13 
GeneralRe: C++ IO Library Pin
Anonymous30-May-03 7:26
Anonymous30-May-03 7:26 
GeneralRe: C++ IO Library Pin
Mike Nordell30-May-03 20:32
Mike Nordell30-May-03 20:32 
Generalsaving screen grabs without file dialog Pin
r i s h a b h s30-May-03 3:32
r i s h a b h s30-May-03 3:32 
GeneralRe: saving screen grabs without file dialog Pin
Anonymous30-May-03 7:17
Anonymous30-May-03 7:17 
GeneralRe: saving screen grabs without file dialog Pin
John R. Shaw30-May-03 8:12
John R. Shaw30-May-03 8:12 
Questionwhy I can't get "select or option" in IHTMLDocument2? Pin
auleaf30-May-03 3:12
auleaf30-May-03 3:12 
look code:
IHTMLDocument2 *m_spActiveDoc2;
LPFNOBJECTFROMLRESULT pfnObjectFromLresult;
DWORD dwMsg;
LRESULT lRes;
HRESULT hr;

dwMsg = RegisterWindowMessage("WM_HTML_GETOBJECT");
SendMessageTimeout(hControl, dwMsg,0,0,SMTO_ABORTIFHUNG,1000,(DWORD*)&lRes);

pfnObjectFromLresult = (LPFNOBJECTFROMLRESULT)GetProcAddress(hInst,"ObjectFromLresult");

if(pfnObjectFromLresult != NULL)
{
hr = (*pfnObjectFromLresult)(lRes,IID_IHTMLDocument,0,(
void**)&m_spActiveDoc2);
if(SUCCEEDED(hr))
{

IHTMLElement *m_spActiveElement;
hr = m_spActiveDoc2->get_activeElement(&m_spActiveElement);

if(SUCCEEDED(hr))
{
BSTR TagNameBStr;
AnsiString TagName;
BSTR LocationURL = NULL;

m_spActiveElement->get_tagName(&TagNameBStr);

TagName = AnsiString(TagNameBStr).UpperCase();

if(TagName == "A")
//here I can't get "option" or "select" object,why?but others ,like A,INPUT,..., i can get it!
...
Questioncan any body help me in speech to text Pin
saeen30-May-03 2:10
saeen30-May-03 2:10 
AnswerRe: can any body help me in speech to text Pin
Anonymous30-May-03 7:20
Anonymous30-May-03 7:20 
AnswerRe: can any body help me in speech to text Pin
Mike Nordell30-May-03 20:42
Mike Nordell30-May-03 20:42 
AnswerRe: can any body help me in speech to text Pin
Joan M1-Jun-03 21:20
professionalJoan M1-Jun-03 21:20 
GeneralCListView and selection Pin
Gian30-May-03 1:56
Gian30-May-03 1:56 
GeneralRe: CListView and selection Pin
David Crow30-May-03 2:52
David Crow30-May-03 2:52 
GeneralRe: CListView and selection Pin
Gian30-May-03 3:06
Gian30-May-03 3:06 
GeneralRe: CListView and selection Pin
David Crow30-May-03 3:39
David Crow30-May-03 3:39 
GeneralVirtual Display Driver Pin
vikramlinux30-May-03 1:45
vikramlinux30-May-03 1:45 
Questionhow to update a toolbar Pin
Bigfoot194230-May-03 1:35
Bigfoot194230-May-03 1:35 
AnswerRe: how to update a toolbar Pin
G. Steudtel30-May-03 7:57
G. Steudtel30-May-03 7:57 
GeneralChanging row Font in listctrl, changes width but not height Pin
ScorpioMidget30-May-03 1:33
ScorpioMidget30-May-03 1:33 
GeneralOnly a trick, not the answer... Pin
Joan M1-Jun-03 21:25
professionalJoan M1-Jun-03 21:25 
GeneralOpenGL in Release mode Pin
Jawache30-May-03 0:54
Jawache30-May-03 0:54 
GeneralLimit number of instances of App Pin
Kamesh30-May-03 0:31
Kamesh30-May-03 0:31 
GeneralRe: Limit number of instances of App Pin
Rage30-May-03 0:42
professionalRage30-May-03 0:42 
GeneralRe: Limit number of instances of App Pin
David Crow30-May-03 2:56
David Crow30-May-03 2:56 

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.