Hallo,
folgendes Problem:
ich habe in meiner Anwendung ein Formular, welches sich beim Minimieren als Icon in den XP-Tray setzt. (Kein Problem dank VBArchiv-Tutorial http://www.vbarchiv.net/archiv/tipp_details.php?pid=517
Jetzt will ich zu bestimmten Anlässen eine Statusmeldung per Blase an diesem Tray-Icon ausgeben.
Ich habe mir schon folgendes Tutorial angesehen:
http://www.vbarchiv.net/archiv/tipp_details.php?pid=828
Leider bekomme ich es aber einfach nicht hin, für mein schon vorhandenes Tray-Icon eine Blase zu erzeugen.
Ich bin für jede Hilfe dankbar
Hier noch mein Modul zum Erzeugen des Tray-Icons:
folgendes Problem:
ich habe in meiner Anwendung ein Formular, welches sich beim Minimieren als Icon in den XP-Tray setzt. (Kein Problem dank VBArchiv-Tutorial http://www.vbarchiv.net/archiv/tipp_details.php?pid=517

Jetzt will ich zu bestimmten Anlässen eine Statusmeldung per Blase an diesem Tray-Icon ausgeben.
Ich habe mir schon folgendes Tutorial angesehen:
http://www.vbarchiv.net/archiv/tipp_details.php?pid=828
Leider bekomme ich es aber einfach nicht hin, für mein schon vorhandenes Tray-Icon eine Blase zu erzeugen.
Ich bin für jede Hilfe dankbar
Hier noch mein Modul zum Erzeugen des Tray-Icons:
Code:
Option Explicit
' alle benötigten API-Deklarationen
Public Declare Sub keybd_event Lib "user32" _
(ByVal bVk As Byte, ByVal bScan As Byte, _
ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Public Const KEYEVENTF_KEYUP = &H2
Public Const VK_LWIN = &H5B
Public Type NOTIFYICONDATA
cbSize As Long
hWnd As Long
uId As Long
uFlags As Long
uCallBackMessage As Long
hIcon As Long
szTip As String * 64
End Type
Public Const NIM_ADD = &H0
Public Const NIM_MODIFY = &H1
Public Const NIM_DELETE = &H2
Public Const NIF_MESSAGE = &H1
Public Const NIF_ICON = &H2
Public Const NIF_TIP = &H4
Public Const WM_MOUSEMOVE = &H200
' Konstanten für linke Maustaste
Public Const WM_LBUTTONDBLCLK = &H203 ' Doppelklick
Public Const WM_LBUTTONDOWN = &H201 ' Maus gedrückt
Public Const WM_LBUTTONUP = &H202 ' Maus losgelassen
' Konstanten für rechte Maustaste
Public Const WM_RBUTTONDBLCLK = &H206 ' Doppelklick
Public Const WM_RBUTTONDOWN = &H204 ' Maus gedrückt
Public Const WM_RBUTTONUP = &H205 ' Maus losgelassen
Public Declare Function Shell_NotifyIcon Lib _
"shell32" Alias "Shell_NotifyIconA" ( _
ByVal dwMessage As Long, _
pnid As NOTIFYICONDATA) As Boolean
Public nid As NOTIFYICONDATA
Public Sub Erzeuge_TrayIcon(ByVal F As Form, Tooltip As String, FormHide As Boolean)
With nid
.cbSize = Len(nid)
.hWnd = F.hWnd
.uId = vbNull
.uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE
.uCallBackMessage = WM_MOUSEMOVE
.hIcon = F.Icon
.szTip = Tooltip
End With
Shell_NotifyIcon NIM_ADD, nid
If FormHide = True Then
F.Hide
End If
End Sub