I call CDhtmlDialog::GetDHtmlDocument() in CDhtmlDialog.OnInitDialog()
, but I found the return values is NULL.
However if I put GetDHtmlDocument()
in a button clicking handler, the returned IHtmlDocument
is valid. So I think maybe the DOM is not loaded when I call CDhtmlDialog::GetDHtmlDocument()
?
Any suggestion is appreciated