ReactOS 0.4.16-dev-106-g10b08aa
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 CLOCKWND_FORMAT_TIME   0
 
#define CLOCKWND_FORMAT_DAY   1
 
#define CLOCKWND_FORMAT_DATE   2
 
#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.

◆ CLOCKWND_FORMAT_DATE

#define CLOCKWND_FORMAT_DATE   2

Definition at line 43 of file trayclock.cpp.

◆ CLOCKWND_FORMAT_DAY

#define CLOCKWND_FORMAT_DAY   1

Definition at line 42 of file trayclock.cpp.

◆ CLOCKWND_FORMAT_TIME

#define CLOCKWND_FORMAT_TIME   0

Definition at line 41 of file trayclock.cpp.

◆ ID_TRAYCLOCK_TIMER

#define ID_TRAYCLOCK_TIMER   0

Definition at line 149 of file trayclock.cpp.

◆ ID_TRAYCLOCK_TIMER_INIT

#define ID_TRAYCLOCK_TIMER_INIT   1

Definition at line 150 of file trayclock.cpp.

◆ TRAY_CLOCK_WND_SPACING_X

#define TRAY_CLOCK_WND_SPACING_X   5

Definition at line 152 of file trayclock.cpp.

◆ TRAY_CLOCK_WND_SPACING_Y

#define TRAY_CLOCK_WND_SPACING_Y   0

Definition at line 153 of file trayclock.cpp.

Function Documentation

◆ CTrayClockWnd_CreateInstance()

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

Definition at line 779 of file trayclock.cpp.

780{
781 return ShellObjectCreatorInit<CTrayClockWnd>(hwndParent, riid, ppv);
782}
static HWND hwndParent
Definition: cryptui.c:300
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by CTrayNotifyWnd::OnCreate().

Variable Documentation

◆ 

const struct { ... } ClockWndFormats[]
Initial value:
= {
{ TRUE, 0, NULL },
{ FALSE, 0, L"dddd" },
}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define L(x)
Definition: ntvdm.h:50
#define DATE_SHORTDATE
Definition: winnls.h:196

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 45 of file trayclock.cpp.