开发者

IHTMLSelectElement : not returning dynamically added items

开发者 https://www.devze.com 2023-02-03 17:02 出处:网络
I have added a ComboBox to my CHTMLEditCtrl by passing it in a HTML string. Then dynamically I add the members(items) to it using IHTMLSelectElement.
  • I have added a ComboBox to my CHTMLEditCtrl by passing it in a HTML string.
  • Then dynamically I add the members(items) to it using IHTMLSelectElement.
  • Now I want to change the font of one of the items that I have just added.

But when I use item() method on this object, it returns a null. Also when I use get_size开发者_开发百科 on the Object, it returns 0, even though all the items I added in the combobox are visible(and hence I infer all the items are added).

I am not able either to retrieve it using COM methods. Any idea?


Usually the DOM elements are available once the page render is complete.

0

精彩评论

暂无评论...
验证码 换一张
取 消