Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List of files in a directory Pin
bugDanny1-Sep-05 10:00
bugDanny1-Sep-05 10:00 
AnswerRe: List of files in a directory Pin
ThatsAlok1-Sep-05 16:19
ThatsAlok1-Sep-05 16:19 
GeneralRe: List of files in a directory Pin
sunit52-Sep-05 0:56
sunit52-Sep-05 0:56 
QuestionProblem automating IE MSHTML SELECT Element Pin
SureshMahanty1-Sep-05 8:27
SureshMahanty1-Sep-05 8:27 
AnswerRe: Problem automating IE MSHTML SELECT Element Pin
Jose Lamas Rios1-Sep-05 15:46
Jose Lamas Rios1-Sep-05 15:46 
GeneralRe: Problem automating IE MSHTML SELECT Element Pin
SureshMahanty1-Sep-05 19:16
SureshMahanty1-Sep-05 19:16 
GeneralRe: Problem automating IE MSHTML SELECT Element Pin
Jose Lamas Rios2-Sep-05 3:31
Jose Lamas Rios2-Sep-05 3:31 
GeneralRe: Problem automating IE MSHTML SELECT Element Pin
SureshMahanty2-Sep-05 9:42
SureshMahanty2-Sep-05 9:42 
Thanks Jose. I was actually posting the follow-up to anyone who may want to respond. I appreciate the info you have given already.

If anyone has pointers on how to use the fireEvent method to fire an onchange event for a particular SELECT Element, that would be much appreciated. Here is what the MSDN documentation says for fireEvent:

IHTMLDocument4::fireEvent Method Internet Development Index

Fires a specified event on the object.

Syntax

HRESULT fireEvent( BSTR bstrEventName,
VARIANT *pvarEventObject,
VARIANT_BOOL *pfCancelled
);
Parameters

bstrEventName
[in] BSTR that specifies the name of the event to fire.
pvarEventObject
[in] Pointer to a VARIANT that specifies the IHTMLEventObj
interface from which the event properties are obtained.
pfCancelled
[out, retval] VARIANT_BOOL that receives one of the
following values:
VARIANT_TRUE - Event fired successfully.
VARIANT_FALSE - Event was cancelled.

If I just want to fire the onchange event, does anybody have a clue what the parameters values should be?

Should bstrEventName literally be set to "onchange"?

How do I create an IHTMLEventObj for pVarEventObj and what would the "event properties" be? It must somehow include a "handle" to the specific DOM object (i.e. the specific SELECT element) or some sort of event "handler". I am just using those terms as a "lay person", rather than exact meanings.

Also, I am not sure how to get the IHTMLDocument4 object...I already have an IHTMLDocument2, do I just "redundantly" call queryInterface in the same way/context that I got the IHTMLDocument2 object, except query for IID_IHTMLDocument4?

BTW, I ordered "Programming Internet Explorer 5" and hopefully it will help with this question (whenever it arrives). But unfortunately, I need to try to push forward regardless of whether it arrives or is useful.


QuestionSafely closing a process Pin
srev1-Sep-05 6:09
srev1-Sep-05 6:09 
AnswerRe: Safely closing a process Pin
bugDanny1-Sep-05 9:51
bugDanny1-Sep-05 9:51 
AnswerRe: Safely closing a process Pin
ThatsAlok2-Sep-05 20:50
ThatsAlok2-Sep-05 20:50 
QuestionDCOM vs CORBA for distributed computing? Pin
Nemanja Trifunovic1-Sep-05 6:02
Nemanja Trifunovic1-Sep-05 6:02 
AnswerRe: DCOM vs CORBA for distributed computing? Pin
Zdeslav Vojkovic1-Sep-05 7:41
Zdeslav Vojkovic1-Sep-05 7:41 
GeneralRe: DCOM vs CORBA for distributed computing? Pin
Nemanja Trifunovic1-Sep-05 7:47
Nemanja Trifunovic1-Sep-05 7:47 
AnswerRe: DCOM vs CORBA for distributed computing? Pin
Roland Pibinger1-Sep-05 12:53
Roland Pibinger1-Sep-05 12:53 
GeneralRe: DCOM vs CORBA for distributed computing? Pin
Nemanja Trifunovic1-Sep-05 15:32
Nemanja Trifunovic1-Sep-05 15:32 
AnswerRe: DCOM vs CORBA for distributed computing? Pin
Bob Stanneveld1-Sep-05 19:33
Bob Stanneveld1-Sep-05 19:33 
QuestionTitle bar( caption bar) whith menu Pin
Neagoe Gabriel1-Sep-05 4:51
Neagoe Gabriel1-Sep-05 4:51 
Question#define syntax for create a class instance Pin
hyling1-Sep-05 4:19
hyling1-Sep-05 4:19 
AnswerRe: #define syntax for create a class instance Pin
toxcct1-Sep-05 4:36
toxcct1-Sep-05 4:36 
GeneralRe: #define syntax for create a class instance Pin
hyling1-Sep-05 6:42
hyling1-Sep-05 6:42 
AnswerRe: #define syntax for create a class instance Pin
Neagoe Gabriel1-Sep-05 4:53
Neagoe Gabriel1-Sep-05 4:53 
GeneralRe: #define syntax for create a class instance Pin
hyling1-Sep-05 6:44
hyling1-Sep-05 6:44 
GeneralRe: #define syntax for create a class instance Pin
Anonymous1-Sep-05 7:50
Anonymous1-Sep-05 7:50 
GeneralRe: #define syntax for create a class instance Pin
hyling2-Sep-05 7:32
hyling2-Sep-05 7:32 

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.