PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Chris Cullen on November 12, 2004, 09:11:55 AM

Title: Passing a parameter with FormOpen functions
Post by: Chris Cullen on November 12, 2004, 09:11:55 AM
Would it be possible to add a parameter to the form open functions (FRMxxx_SHOW) after the hWnd of the parent which could then be available in the WM_CREATE message.  The parameter would only need to be a LONG type and could be passed to WM_CREATE via it's LPARAM (see API DialogBoxParam).  I would understand if we needed extra functions for this (FRMxxx_SHOWPARAM) etc for each form.  It would then make it very easy to pass a pointer to a structure which the form could then update.  This makes using Modal Forms from function calls much easier.  At present, I am not sure how I could achieve this.

What I am trying to do is something a bit like the FF_OPEFILEDIALOG function (only could have more than just a single bit of information).

I may be missing something, but it does not look like this kind of thing is possible in FF.
Title: Passing a parameter with FormOpen functions
Post by: TechSupport on November 12, 2004, 05:05:35 PM
That is a very good idea. I will have to add it as an optional parameter in order to not to break existing code.