PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Stephane Fonteyne on December 08, 2009, 06:40:04 PM

Title: Initialize my control
Post by: Stephane Fonteyne on December 08, 2009, 06:40:04 PM
Dear developers,

I don't find the WM_INITIALIZE message in FF3. How can I setup my trackbars to the defaults values when the program is loaded in memory? What FF3 function do I have used for setup my trackbars to move down all?

Thanks
Stephane
Title: Re: Initialize my control
Post by: John Montenigro on December 08, 2009, 07:35:02 PM
I've been searching my SDK and other WinAPI resources, and I haven't found such a message. Are you sure it's WM_INITIALIZE and not WM_INITDIALOG???

Title: Re: Initialize my control
Post by: Stephane Fonteyne on December 08, 2009, 07:45:52 PM
Hi John

Its WM_INITDIALOG
Title: Re: Initialize my control
Post by: John Montenigro on December 08, 2009, 07:56:10 PM
Would it make sense to put your setup in the WM_CREATE of the form?

Or, in the special module FF_AppStart?
Title: Re: Initialize my control
Post by: Paul Squires on December 08, 2009, 08:04:33 PM
Use WM_CREATE for the Form that the controls are on. WM_INITDIALOG is used when you emply the dialog functionality of Windows (which is what PB's DDT uses). FF3 uses the CreateWindowEx approach so it uses WM_CREATE.

The initial TrackBar properties can be set using FireFly's PropertyList rather than having to do it via code.