Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowssystemtrayicon.cpp File Reference

(abd78e6d005fafa1f54b78c9043717ce80923846)

#include <QtCore/qt_windows.h>
#include "qwindowssystemtrayicon.h"
#include "qwindowscontext.h"
#include "qwindowstheme.h"
#include "qwindowsmenu.h"
#include "qwindowsscreen.h"
#include "qwindowswindowclassregistry.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 <QtGui/private/qguiapplication_p.h>
#include <commctrl.h>
#include <shellapi.h>
#include <shlobj.h>
#include <windowsx.h>
Include dependency graph for qwindowssystemtrayicon.cpp:

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

Macro Definition Documentation

◆ MYWM_NOTIFYICON

#define MYWM_NOTIFYICON   (WM_APP+101)

Definition at line 36 of file qwindowssystemtrayicon.cpp.

Typedef Documentation

◆ HwndTrayIconEntries

Function Documentation

◆ createTrayIconMessageWindow()

HWND createTrayIconMessageWindow ( )
inlinestatic

Definition at line 117 of file qwindowssystemtrayicon.cpp.

References QWindowsWindowClassRegistry::instance().

Here is the call graph for this function:

◆ indexOfHwnd()

int indexOfHwnd ( HWND hwnd)
static

Definition at line 83 of file qwindowssystemtrayicon.cpp.

◆ initNotifyIconData()

void initNotifyIconData ( NOTIFYICONDATA & tnd)
inlinestatic

Definition at line 50 of file qwindowssystemtrayicon.cpp.

◆ operator<<()

QDebug operator<< ( QDebug d,
const QWindowsSystemTrayIcon * t )

Definition at line 459 of file qwindowssystemtrayicon.cpp.

References QWindowsSystemTrayIcon::formatDebug().

Here is the call graph for this function:

◆ qStringToLimitedWCharArray()

void qStringToLimitedWCharArray ( QString in,
wchar_t * target,
int maxLength )
inlinestatic

Definition at line 41 of file qwindowssystemtrayicon.cpp.

◆ qt_pixmapToWinHICON()

Q_GUI_EXPORT HICON qt_pixmapToWinHICON ( const QPixmap & p)

Definition at line 539 of file qpixmap_win.cpp.

◆ qWindowsTrayIconWndProc()

LRESULT QT_WIN_CALLBACK qWindowsTrayIconWndProc ( HWND hwnd,
UINT message,
WPARAM wParam,
LPARAM lParam )

Definition at line 93 of file qwindowssystemtrayicon.cpp.

◆ setIconContents()

void setIconContents ( NOTIFYICONDATA & tnd,
const QString & tip,
HICON hIcon )
static

Definition at line 57 of file qwindowssystemtrayicon.cpp.

◆ setIconVisibility()

void setIconVisibility ( NOTIFYICONDATA & tnd,
bool v )
static

Definition at line 65 of file qwindowssystemtrayicon.cpp.

Variable Documentation

◆ MYWM_TASKBARCREATED

uint MYWM_TASKBARCREATED = 0
static

Definition at line 35 of file qwindowssystemtrayicon.cpp.

◆ q_uNOTIFYICONID

const UINT q_uNOTIFYICONID = 0
static

Definition at line 33 of file qwindowssystemtrayicon.cpp.