In your code above, the %WM_TRAYICON = (%WM_USER + 400) should be fine, but you should also change the PostMessage() and CASE %WM_USER to use a higer value, ie, (%WM_USER + 401).
As discussed in above, adding %WS_MINIMIZE to the dialog style for the initial dialog may be useful to stop the "flash" of the dialog as the app starts. Either that, or make the dialog look like a splash screen as it starts.

------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment: