PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Anonymous on October 10, 2004, 08:28:53 PM

Title: Calling functions
Post by: Anonymous on October 10, 2004, 08:28:53 PM
Hello,

I think I might be overlooking something simple, but how do I call a FireFly generated function (e.g., FRMSEARCH_CMDDELETE_BN_SAVE)?

Thanks!

John
Title: Re: Calling functions
Post by: TechSupport on October 11, 2004, 09:41:11 AM
Quote from: jptchiHello,

I think I might be overlooking something simple, but how do I call a FireFly generated function (e.g., FRMSEARCH_CMDDELETE_BN_SAVE)?

That doesn't look like a FireFly generated function. Maybe you mean: FRMSEARCH_CMDDELETE_BN_CLICKED

I assume that you are trying to simulate the pressing of your cmdDelete command button. If that is true, then you would need to either use a SendMessage or PostMessage command to the button. You could also call the function directly if you prefer that method:


SendMessage HWND_FRMSEARCH, %WM_COMMAND, MakDwd(IDC_FRMSEARCH_CMDDELETE, %BN_CLICKED), HWND_FRMSEARCH_CMDDELETE

or

Call FRMSEARCH_CMDDELETE_BN_CLICKED ( 0, HWND_FRMSEARCH, HWND_FRMSEARCH_CMDDELETE, IDC_FRMSEARCH_CMDDELETE)
Title: Calling functions
Post by: Anonymous on October 11, 2004, 03:37:24 PM
Thanks Paul!

That's exactly what I was looking for.

-John