I recently asked a question on how to embeed an html control in my C++ app.
Now that I have succeeded in it, and also wrote some HTML code to it, I face a new problem.
I need to insert HTML content to the already exisitng content I have, there is away to do it using :
// iweb was already obtained
ibody->insertAdjacentHTML (_bstr_t("afterBegin"), _bstr_t(str) );
_variant_t vtag = 6;
_variant_t vindex = 1;
IDispatch * iTag;
iall->item (vtag, vindex, &iTag);
IHTMLTable * irow;
//now use it
this works well, but what if I need to insert at a specific location? the way I saw in the documantations says, I need to search for it and then use a specific COM interface per tag (e.g. <TR>, <TABLE>) and use specific methods availaible only to that tag, and that is way more code than I wanted.
I need a generic way to search for a specific location and insert raw HTML at that specific location. can anyone help me with a technique and a code snippet ?