err on wm_create

Started by Paul D. Elliott, May 01, 2005, 05:08:06 PM

Previous topic - Next topic

Paul D. Elliott

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?

TechSupport

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.

Paul D. Elliott

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?

Jean-Pierre LEROY

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.

TechSupport

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.

Paul D. Elliott

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.