开发者

Getting print cancelled notification in IE using IOlecommandTarget::QueryStatus

开发者 https://www.devze.com 2023-01-22 07:37 出处:网络
Is it possible to be notified if a user selects cancel button from the printing开发者_StackOverflow prompt in IE ? Basically I want a print-cancelled kind of notification.

Is it possible to be notified if a user selects cancel button from the printing开发者_StackOverflow prompt in IE ? Basically I want a print-cancelled kind of notification.

I read somewhere that IOlecommandtarget interface can be used to be notified for our own controls, but can the same be used for system controls like print ? Can anyone help ?


If you are using IOleCommandTarget::Exec Method you will get OLECMDERR_E_CANCELED as return value on cancel.

0

精彩评论

暂无评论...
验证码 换一张
取 消