Display Modal Dialog Box with ActiveX

£可爱£侵袭症+ 提交于 2019-12-12 02:05:39

问题


I'd like to create an ActiveX browser plugin that displays a modal dialog box to the user...but how do I do that? If you know of some basic tutorial out there that does exactly this it would be very much appreciated!


回答1:


You can display modal dialog as usual use DialogBox function.

Only ActiveX control should call method IOleInPlaceFrame::EnableModeless before and after show dialog. Pointer to the IOleInPlaceFrame you can get from your container via IOleInPlaceSite::GetWindowContext method.




回答2:


Use PreModalDialog() and PostModalDialog()



来源:https://stackoverflow.com/questions/4588036/display-modal-dialog-box-with-activex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!