|
-
Dec 4th, 2012, 04:17 AM
#6
Re: Image Monitor
SetForegroundWindow ought to work because when the tray icon was right-clicked, the focus transferred to that icon's owner hWnd (set by NOTIFYICONDATA.hWnd). It is a known bug with tray icons and context menus. If SetForegroundWindow isn't called, the context menu is left open even when clicking other windows. SetForegroundWindow fixes that. Google other examples of tray icons and you'll see what I mean.
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|