views:

415

answers:

1

I'm working with an ActiveX control placed on a winform. I'd when the user tries to save or print, it will always show a dialog box first; I'd like to either immediately close the dialog box or keep it from displaying in the first place.

The control in question does not raise any events that would let me know what button they pushed, so I can't really cancel it out by looking for an "on_print" notification.

A: 

I ended up just sending escape via SendKey() whenever WM_ENTERIDLE was processed and that did the job. Dirty hack, but it worked.

Dabas