PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Paul D. Elliott on May 01, 2005, 05:08:06 PM

Title: err on wm_create
Post by: Paul D. Elliott on May 01, 2005, 05:08:06 PM
Unhhhhh, I'm now getting errors on the form_WM_Create saying it wants
a ) right after the form handle. I just updated to v2.1. It looks like the
declare doesn't mention the ff_userdata but that the code does.

Is there a problem?
Title: err on wm_create
Post by: TechSupport on May 01, 2005, 06:08:03 PM
Hi Paul,

I think that you will have to manually add the following to the WM_CREATE function parameter list for any WM_CREATE's that exist in your project:

Immediately after the hWndForm As Dword parameter add a new parameter, ByVal UserData As Long.

Each WM_CREATE message should now have two parameters (1) hWndForm and (2) UserData.

Sorry - Looks like an automated update from 2.0 to 2.1 would have been justified in this case.
Title: err on wm_create
Post by: Paul D. Elliott on May 01, 2005, 06:16:14 PM
Paul,

Thanks, that fixed the compile problem but now the first tab of my
tabcontrol doesn't show. I didn't change anything since yesterday when
it worked. Wasn't there some change made to tabcontrols that had to do
with not showing them initially or something?
Title: err on wm_create
Post by: Jean-Pierre LEROY on May 01, 2005, 07:38:30 PM
Paul,

I get the same problem as Paul D. Elliot about TabControl.

The defaut active tab is selected but no control of the child form are displayed at startup; then if I select another TAB, then come back to the defaut active tab, the controls are correctly displayed.
Title: err on wm_create
Post by: TechSupport on May 01, 2005, 07:44:29 PM
Sorry Paul, my fault. Looks like the IsWindowVisible API is not valid until after the WM_CREATE is complete.

I changed to a different approach that now works.

You can get the fix from:
http://www.planetsquires.com/files/FFengine.zip

Simply unzip the FFengine.exe file to overwrite your existing one. I have also updated the original full FireFly install.
Title: err on wm_create
Post by: Paul D. Elliott on May 01, 2005, 07:56:33 PM
Okay, much better now.

If you would like, I volunteer to be a last-minute tester. I'm currently
unemployed so I have a LOT of free time. I can run thru the samples
and the FF projects I'm currently working on.