Re: short-circuting a dialog box?

2005-05-04 Thread peter
It appears you really have very little knowlege of win32 API programming, I'm not sure this is the place for you to start. Is this a wine problem ? If so in what way. Maybe you just need to say what you are ultimately trying to achieve and see if someone can suggest a more global solution of v

Re: short-circuting a dialog box?

2005-05-03 Thread Kees Cook
On Tue, May 03, 2005 at 08:29:10PM +0200, [EMAIL PROTECTED] wrote: > It appears you really have very little knowlege of win32 API programming, > I'm not sure this is the place for you to start. That's true. I should probably take this off channel. > Is this a wine problem ? If so in what way.

Re: short-circuting a dialog box?

2005-05-03 Thread Kees Cook
On Tue, May 03, 2005 at 07:38:26PM +0200, [EMAIL PROTECTED] wrote: > YOu could trap it#s onshow event but be careful since most dlgs are > created as modal , you could end up hanging your process. How would I go about capturing that? (Or, how would I hook the event handler?) -- Kees Cook

Re: short-circuting a dialog box?

2005-05-03 Thread wino
YOu could trap it#s onshow event but be careful since most dlgs are created as modal , you could end up hanging your process. On Tue, 03 May 2005 17:23:40 +0200, Kees Cook <[EMAIL PROTECTED]> wrote: On Tue, May 03, 2005 at 11:56:35AM +0300, Shachar Shemesh wrote: For simple things, merely sendin

Re: short-circuting a dialog box?

2005-05-03 Thread Kees Cook
On Tue, May 03, 2005 at 11:56:35AM +0300, Shachar Shemesh wrote: > For simple things, merely sending the dialog a WM_COMMAND with the right > parameters will do it for you. You can programatically find the dialog > using "FindWindow". Ah-ha, yes. I ended up using EnumWindows (filtering out the

Re: short-circuting a dialog box?

2005-05-03 Thread Shachar Shemesh
Kees Cook wrote: I'm trying to figure out if there is a way to short-circuit a dialog box. Basically, I want to traps calls to DialogBoxParam, pump calls into lpDialogFunc for dialog init, and then clicking of the "Ok" button, and finally trap calls to EndDialog. It seems that this is ... hard

Re: short-circuting a dialog box?

2005-05-03 Thread Andreas Mohr
Hi, On Tue, May 03, 2005 at 12:36:09AM -0700, Kees Cook wrote: > Is there a simpler way to programatically click "Ok" on a dialog box? > (The dialog box coming from code that I don't have source for...) I'm not sure about that at all, but maybe CBT (Computer-Based Training) hooks are what you wa

short-circuting a dialog box?

2005-05-03 Thread Kees Cook
I'm trying to figure out if there is a way to short-circuit a dialog box. Basically, I want to traps calls to DialogBoxParam, pump calls into lpDialogFunc for dialog init, and then clicking of the "Ok" button, and finally trap calls to EndDialog. It seems that this is ... hard. :) There is a