ReactOS  0.4.14-dev-593-g1793dcc
trayclock.cpp File Reference
#include "precomp.h"
Include dependency graph for trayclock.cpp:

Go to the source code of this file.

Classes

class  CTrayClockWnd
 

Macros

#define CLOCKWND_FORMAT_COUNT   ClockWndFormatsCount
 
#define ID_TRAYCLOCK_TIMER   0
 
#define ID_TRAYCLOCK_TIMER_INIT   1
 
#define TRAY_CLOCK_WND_SPACING_X   5
 
#define TRAY_CLOCK_WND_SPACING_Y   0
 

Functions

HRESULT CTrayClockWnd_CreateInstance (HWND hwndParent, REFIID riid, void **ppv)
 

Variables

struct {
   BOOL   IsTime
 
   DWORD   dwFormatFlags
 
   LPCWSTR   lpFormat
 
ClockWndFormats []
 
const UINT ClockWndFormatsCount = _ARRAYSIZE(ClockWndFormats)
 
static const WCHAR szTrayClockWndClass [] = L"TrayClockWClass"
 

Macro Definition Documentation

◆ CLOCKWND_FORMAT_COUNT

#define CLOCKWND_FORMAT_COUNT   ClockWndFormatsCount

Definition at line 40 of file trayclock.cpp.

◆ ID_TRAYCLOCK_TIMER

#define ID_TRAYCLOCK_TIMER   0

Definition at line 145 of file trayclock.cpp.

◆ ID_TRAYCLOCK_TIMER_INIT

#define ID_TRAYCLOCK_TIMER_INIT   1

Definition at line 146 of file trayclock.cpp.

◆ TRAY_CLOCK_WND_SPACING_X

#define TRAY_CLOCK_WND_SPACING_X   5

Definition at line 148 of file trayclock.cpp.

◆ TRAY_CLOCK_WND_SPACING_Y

#define TRAY_CLOCK_WND_SPACING_Y   0

Definition at line 149 of file trayclock.cpp.

Function Documentation

◆ CTrayClockWnd_CreateInstance()

HRESULT CTrayClockWnd_CreateInstance ( HWND  hwndParent,
REFIID  riid,
void **  ppv 
)

Definition at line 750 of file trayclock.cpp.

751 {
752  return ShellObjectCreatorInit<CTrayClockWnd>(hwndParent, riid, ppv);
753 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HWND hwndParent
Definition: cryptui.c:300

Referenced by CTrayNotifyWnd::OnCreate().

Variable Documentation

◆ ClockWndFormats

const { ... } ClockWndFormats[]
Initial value:
= {
{ TRUE, 0, NULL },
{ FALSE, 0, L"dddd" },
}
#define TRUE
Definition: types.h:120
#define DATE_SHORTDATE
Definition: winnls.h:193
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR L[]
Definition: oid.c:1250

Referenced by CTrayClockWnd::UpdateWnd().

◆ ClockWndFormatsCount

const UINT ClockWndFormatsCount = _ARRAYSIZE(ClockWndFormats)

Definition at line 38 of file trayclock.cpp.

◆ dwFormatFlags

DWORD dwFormatFlags

◆ IsTime

BOOL IsTime

Definition at line 30 of file trayclock.cpp.

Referenced by CTrayClockWnd::UpdateWnd().

◆ lpFormat

◆ szTrayClockWndClass

const WCHAR szTrayClockWndClass[] = L"TrayClockWClass"
static

Definition at line 42 of file trayclock.cpp.