Re: Click OK from within a program


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Brian Levantine on February 12, 2008 at 11:06:46:

In Reply to: Re: Click OK from within a program posted by Barbara Brazil on February 12, 2008 at 09:22:14:

Way to go Barb! This code does just as you suggest. The call to COS.GetrameWindow provides a handle to the parent window (in this case the main Cosw window)that contains the control. If you are dealing with a dialog box then you should instead copy cosDlghDlg$ into cosCWnd$. This is the window that will ultimately receive the WM.COMMAND message which will then be forwarded to your code. The upper word of coswParam should contain the command being issued (BN.CLICKED) while the low word should contain the control ID (cosPRINT.DIALOG in the example)). coslParam should be 0.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]