Hi! Sorry to raise such an old thread, but...
Neither? I probably just got some OLE hosting thing wrong or perhaps WS_EX_CONTROLPARENT is not doing its job. I think the problem was only with tabbing out of the IE control and onto the next button etc.
I've spent the last year (on and off) trying to figure out how to make the Tab key work in EmbedHTML.
I can't get it to work at all. If it was just a matter of not being able to Tab-out of the control, that would not be much of a problem. But I can't get it to work even in a form within the HTML area, making my registration text form within really awkward.
I've tried using ${NSD_Add[Ex]Style} with ${WS_TABSTOP} and ${WS_EX_CONTROLPARENT} on both the embedded control and on the nsDialog I've created to hold it. No difference.
Once thing I did notice is that the UI_TranslateAccelerator() returns E_NOTIMPL instead of S_FALSE as the similar implementation gives
in this project. I tried altering the return value and there is no change as well. In fact, putting some debugging actions in there suggests to me that UI_TranslateAccelerator() never even gets called.
Did the tabbing work in Anders' solution because of the EmbedIECallback() function? Is that something we could do in EmbedHTML? Does someone know if it is some kind of setting for the OleCreate() code? Any hints?
Many thanks.