Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <QtCore/qt_windows.h>
#include "qwindowssystemtrayicon.h"
#include "qwindowscontext.h"
#include "qwindowstheme.h"
#include "qwindowsmenu.h"
#include "qwindowsscreen.h"
#include <QtGui/qguiapplication.h>
#include <QtGui/qpixmap.h>
#include <QtCore/qdebug.h>
#include <QtCore/qlist.h>
#include <QtCore/qrect.h>
#include <QtCore/qsettings.h>
#include <qpa/qwindowsysteminterface.h>
#include <commctrl.h>
#include <shellapi.h>
#include <shlobj.h>
#include <windowsx.h>
Go to the source code of this file.
Classes | |
struct | QWindowsHwndSystemTrayIconEntry |
Macros | |
#define | MYWM_NOTIFYICON (WM_APP+101) |
Typedefs | |
using | HwndTrayIconEntries = QList<QWindowsHwndSystemTrayIconEntry> |
Functions | |
Q_GUI_EXPORT HICON | qt_pixmapToWinHICON (const QPixmap &) |
static void | qStringToLimitedWCharArray (QString in, wchar_t *target, int maxLength) |
static void | initNotifyIconData (NOTIFYICONDATA &tnd) |
static void | setIconContents (NOTIFYICONDATA &tnd, const QString &tip, HICON hIcon) |
static void | setIconVisibility (NOTIFYICONDATA &tnd, bool v) |
static int | indexOfHwnd (HWND hwnd) |
LRESULT QT_WIN_CALLBACK | qWindowsTrayIconWndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
static HWND | createTrayIconMessageWindow () |
QDebug | operator<< (QDebug d, const QWindowsSystemTrayIcon *t) |
Variables | |
static const UINT | q_uNOTIFYICONID = 0 |
static uint | MYWM_TASKBARCREATED = 0 |
#define MYWM_NOTIFYICON (WM_APP+101) |
Definition at line 32 of file qwindowssystemtrayicon.cpp.
Referenced by qWindowsTrayIconWndProc(), setIconContents(), and QWindowsSystemTrayIcon::winEvent().
Definition at line 75 of file qwindowssystemtrayicon.cpp.
|
inlinestatic |
Definition at line 114 of file qwindowssystemtrayicon.cpp.
References className, QWindowsContext::classNamePrefix(), QWindowsContext::instance(), and qWindowsTrayIconWndProc().
|
static |
Definition at line 79 of file qwindowssystemtrayicon.cpp.
References i.
Referenced by qWindowsTrayIconWndProc().
|
inlinestatic |
Definition at line 46 of file qwindowssystemtrayicon.cpp.
Referenced by QWindowsSystemTrayIcon::showMessage().
QDebug operator<< | ( | QDebug | d, |
const QWindowsSystemTrayIcon * | t ) |
Definition at line 452 of file qwindowssystemtrayicon.cpp.
References d.
Definition at line 37 of file qwindowssystemtrayicon.cpp.
References qMin().
Referenced by setIconContents(), and QWindowsSystemTrayIcon::showMessage().
Q_GUI_EXPORT HICON qt_pixmapToWinHICON | ( | const QPixmap & | p | ) |
Definition at line 537 of file qpixmap_win.cpp.
LRESULT QT_WIN_CALLBACK qWindowsTrayIconWndProc | ( | HWND | hwnd, |
UINT | message, | ||
WPARAM | wParam, | ||
LPARAM | lParam ) |
Definition at line 89 of file qwindowssystemtrayicon.cpp.
References at, indexOfHwnd(), MYWM_NOTIFYICON, and MYWM_TASKBARCREATED.
Referenced by createTrayIconMessageWindow().
Definition at line 53 of file qwindowssystemtrayicon.cpp.
References MYWM_NOTIFYICON, and qStringToLimitedWCharArray().
|
static |
Definition at line 61 of file qwindowssystemtrayicon.cpp.
|
static |
Definition at line 31 of file qwindowssystemtrayicon.cpp.
Referenced by qWindowsTrayIconWndProc(), and QWindowsSystemTrayIcon::winEvent().
|
static |
Definition at line 29 of file qwindowssystemtrayicon.cpp.
Referenced by QWindowsSystemTrayIcon::geometry(), QWindowsSystemTrayIcon::showMessage(), and QWindowsSystemTrayIcon::winEvent().