问题
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