Eine Frage zum TrackPopupMenu() ?!?
-
hi hab da mal ne frage. und zwar, wenn ich nen TrackPopupMenu habe, also son teil was eigentlich immer per rechtsklick erscheint.
wie stell ich es an das sich das autom. wieder schliesst,wenn ich es aufgerufen habe aber irgendwo anders hinklicke, ohne jetzt ein menuitem anzuklicken.*sich dumm anstellt es zubeschreiben*, ich hoffe man konnts einiger maßen verstehen

Gruß Tobi!
-
MSDN schrieb:
To display a context menu for a notification icon, the current window must be the foreground window before the application calls TrackPopupMenu or TrackPopupMenuEx. Otherwise, the menu will not disappear when the user clicks outside of the menu or the window that created the menu (if it is visible). However, when the current window is the foreground window, the second time this menu is displayed, it displays and then immediately disappears. To correct this, you must force a task switch to the application that called TrackPopupMenu. This is done by posting a benign message to the window or thread, as shown in the following code sample [..]
-
ok danke werd smir anshcaun.