A browser helper object I'm writing at the moment needs to alert the user of certain situations. I don't want to use the WinAPI function MessageBox, because it forces the user to click it away. Is there a possibillity to ask the user a question without blocking his workflow? He should be able to just ignore the question, if he isn't interested in it at the moment. Something like gBrowser.getNotificationBox() for firefox extensions would be ideal (example image appended).
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- Is TWebBrowser dependant on IE version?
- IE dropdown z-index bug
- Multiple cookies with same name
- jQuery: checkbox does not lose focus (blur) [IE]
相关文章
I finally could solve it. The answer below and the answers in this question did help me. There you can also find some more information about this problem. If someone has the same problem, here is my code. I don't think it will compile without the rest of my projects code, but it should give an idea, how to implement such a dialog box in a browser helper object:
Header:
Source:
The function webbrowser.getCurrentTabHwnd() returns the current tab window:
You also have to call NotificationBar::fitSize() on each resize of the browser window. For this you can use IHTMLWindow3::attachEvent(_T("onresize"),...) in the DocumentComplete event of IE.
Here the way to get an instance of IHTMLWindow3 in the DocumentComplete handler:
You can create your own window and use SetWindowPos to move it into the IE window.
If you want to play safe, I suggest you to write a browser band
There is not yet an API to customize the content of information bar aka security band.