when i double-click on tray-icon it not appears as ACTIVATED window. Any1 knows how to correct this?
I fix it this way (i use a dialog .. not a window):
call ShowWindow,hWnd,5 ; SW_SHOW
call ShowWindow,hWnd,9 ; SW_RESTORE
call UpdateWindow,hWnd
Any better method?
you need to add a line to your code here it is:
.if ax==IDM_RESTORE
invoke ShowWindow,hWnd,SW_RESTORE
invoke SetForegroundWindow,hWnd <-- add this line