Click here to Skip to main content
15,909,466 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Solve Error Pin
Member 21610041-Sep-05 16:58
Member 21610041-Sep-05 16:58 
QuestionList of files in a directory Pin
bugDanny1-Sep-05 9:43
bugDanny1-Sep-05 9:43 
AnswerRe: List of files in a directory Pin
carks1-Sep-05 9:56
carks1-Sep-05 9:56 
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 
The following is from MSDN documentation for onchange Event[^] (emphasis added):

Remarks

This event is fired when the contents are committed and not while the value is changing. For example, on a text box, this event is not fired while the user is typing, but rather when the user commits the change by leaving the text box that has focus. In addition, this event is executed before the code specified by onblur when the control is also losing the focus.

The onchange event does not fire when the selected option of the select object is changed programatically.

I've never worked with any of this, but I'd think you might be able to do what you want if, after changing the selection, you use IHTMLDocument4::createEventObject[^] to create an event, set the relevant properties for that event using the IHTMLEventObj Interface[^] (check the doc for the onchange Event[^] to see which properties are available for handlers), and finally use either IHTMLDocument4::fireEvent[^] or IHTMLElement3::fireEvent[^] to the fire the event yourself.

As a side note, I don't see in your code the Release calls for the COM interfaces you are acquiring. Consider using ATL's CComPtr[^] and CComQIPtr[^], which automatically handle that for you.

Hope that helps,

--
jlr
http://jlamas.blogspot.com/[^]
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 
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 

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.