40 #define CLOCKWND_FORMAT_COUNT ClockWndFormatsCount 47 public CWindowImpl < CTrayClockWnd, CWindow, CControlWinTraits >,
145 #define ID_TRAYCLOCK_TIMER 0 146 #define ID_TRAYCLOCK_TIMER_INIT 1 148 #define TRAY_CLOCK_WND_SPACING_X 5 149 #define TRAY_CLOCK_WND_SPACING_Y 0 191 if (this->hFont !=
NULL)
271 WORD iLinesVisible = 0;
273 SIZE szMax = { 0, 0 };
285 if (iLinesVisible > 0)
319 return iLinesVisible;
357 if (iRet != 0 &&
i == 0)
397 if (iDateLength <= 0)
411 reinterpret_cast<UINT_PTR>(
m_hWnd),
473 UINT uiWait1, uiWait2;
483 uiWait1 = 1000 - 200;
488 uiWait1 = 60 * 1000 - 200;
492 if (uiDueTime > uiWait1)
556 for (
i = 0,
line = 0;
660 ti.uId = reinterpret_cast<UINT_PTR>(
m_hWnd);
LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
const struct @84 ClockWndFormats[]
LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
static const WCHAR szTrayClockWndClass[]
WORD GetMinimumSize(IN BOOL Horizontal, IN OUT PSIZE pSize)
HWND Create(HWND hWndParent, _U_RECT rect=NULL, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
#define LOCALE_USER_DEFAULT
LRESULT OnEraseBackground(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define TNWM_GETMINIMUMSIZE
HRESULT WINAPI ContextSensitiveHelp(BOOL fEnterMode)
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
#define DECLARE_NOT_AGGREGATABLE(x)
void EndPaint(LPPAINTSTRUCT lpPaint)
HRESULT WINAPI GetThemeFont(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, LOGFONTW *pFont)
#define ID_TRAYCLOCK_TIMER_INIT
BOOL SetWindowText(LPCTSTR lpszString)
LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL InvalidateRect(LPCRECT lpRect, BOOL bErase=TRUE)
#define TTTOOLINFOW_V1_SIZE
int WINAPI SetBkMode(_In_ HDC, _In_ int)
#define TWM_SETTINGSCHANGED
BOOL WINAPI IsAppThemed(void)
UINT_PTR SetTimer(UINT_PTR nIDEvent, UINT nElapse, void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD)=NULL)
BOOL GetClientRect(LPRECT lpRect) const
VOID SetFont(IN HFONT hNewFont, IN BOOL bRedraw)
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
BOOL KillTimer(UINT_PTR nIDEvent)
SIZE LineSizes[CLOCKWND_FORMAT_COUNT]
LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HFONT WINAPI CreateFontIndirectW(_In_ const LOGFONTW *)
TaskbarSettings g_TaskbarSettings
HRESULT WINAPI GetWindow(HWND *phwnd)
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
HRESULT Initialize(IN HWND hWndParent)
HDC BeginPaint(LPPAINTSTRUCT lpPaint)
#define TRAY_CLOCK_WND_SPACING_X
LRESULT OnGetMinimumSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define ID_TRAYCLOCK_TIMER
#define CLOCKWND_FORMAT_COUNT
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
const UINT ClockWndFormatsCount
#define USER_TIMER_MAXIMUM
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
LRESULT DrawBackground(HDC hdc)
HRESULT WINAPI GetThemeColor(HTHEME hTheme, int iPartId, int iStateId, int iPropId, COLORREF *pColor)
LRESULT OnTaskbarSettingsChanged(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
WCHAR szLines[CLOCKWND_FORMAT_COUNT][48]
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
#define TRAY_CLOCK_WND_SPACING_Y
BOOL ShowWindow(int nCmdShow)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define COM_INTERFACE_ENTRY_IID(iid, x)
HRESULT CTrayClockWnd_CreateInstance(HWND hwndParent, REFIID riid, void **ppv)
#define BEGIN_MSG_MAP(theClass)
LRESULT OnSetFont(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
#define MESSAGE_HANDLER(msg, func)
LRESULT OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpVerb, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
const GUID IID_IOleWindow
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
CWindow GetParent() const
size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
BOOL WINAPI GetTextExtentPointW(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpString, _In_ int c, _Out_ LPSIZE lpsz)
BOOL IsWindowVisible() const
LRESULT OnLButtonDblClick(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)