Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Systray.vcx
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00950206
Message ID:
00951001
Views:
9
Robert

If you are still experiencing problem displaying the icon try:
* Identify the icon to be displayed in the system tray.
loSysTray.IconFile 	= “tree.ico”
				
*/ Call the method that does the work.
lnRetVal	= loSysTray.addIconToSystray()
IF lnRetVal	= 1
    */ Success.
    lpText	= [Icon "tree.ico" displayed in sysTray.]
    lpCaption	= "Success"
ELSE
   */ Failed.
    lpText	= [Icon "tree.ico" failed to display in sysTray.]
    lpCaption	= "Failed"
ENDIF		&& lnRetVal

DECLARE INTEGER MessageBox IN user32 As MessageBoxA; 
    INTEGER hwnd,; 
    STRING  lpText,; 
    STRING  lpCaption,; 
    INTEGER wType  
 
hwnd	= 0
wType	= 0

MessageBoxA(@hwnd,@lpText,@lpCaption,@wType)
Code not tested but hope it helps.

Gordon
Previous
Reply
Map
View

Click here to load this message in the networking platform