22#include <commoncontrols.h>
27#define DEBUG_SHELL_HOOK 0
29#define MAX_TASKS_COUNT (0x7FFF)
30#define TASK_ITEM_ARRAY_ALLOC 64
43 { HSHELL_WINDOWACTIVATED,
L"HSHELL_WINDOWACTIVATED" },
44 { HSHELL_GETMINRECT,
L"HSHELL_GETMINRECT" },
45 { HSHELL_REDRAW,
L"HSHELL_REDRAW" },
46 { HSHELL_TASKMAN,
L"HSHELL_TASKMAN" },
47 { HSHELL_LANGUAGE,
L"HSHELL_LANGUAGE" },
48 { HSHELL_SYSMENU,
L"HSHELL_SYSMENU" },
49 { HSHELL_ENDTASK,
L"HSHELL_ENDTASK" },
50 { HSHELL_ACCESSIBILITYSTATE,
L"HSHELL_ACCESSIBILITYSTATE" },
51 { HSHELL_APPCOMMAND,
L"HSHELL_APPCOMMAND" },
52 { HSHELL_WINDOWREPLACED,
L"HSHELL_WINDOWREPLACED" },
53 { HSHELL_WINDOWREPLACING,
L"HSHELL_WINDOWREPLACING" },
147 CLSCTX_INPROC_SERVER,
161 hr = pnotification->Show(
NULL, 0);
219 if (bHorizontal || uiBtnsPerLine > 1)
224 if (!bHorizontal || uiRows > 1)
250 tbbi.cbSize =
sizeof(tbbi);
252 tbbi.idCommand = iCommandId;
254 return SetButtonInfo(iButtonIndex, &tbbi) != 0;
298 public CWindowImpl < CTaskSwitchWnd, CWindow, CControlWinTraits >,
362 TRACE(
"Tasks dump:\n");
366 while (CurrentGroup !=
NULL)
372 while (CurrentTaskItem != LastTaskItem)
374 if (CurrentTaskItem->
Group == CurrentGroup)
376 TRACE(
" + Task hwnd: 0x%p Index: %d\n", CurrentTaskItem->
hWnd, CurrentTaskItem->
Index);
381 CurrentGroup = CurrentGroup->
Next;
386 while (CurrentTaskItem != LastTaskItem)
390 TRACE(
"- Task hwnd: 0x%p Index: %d\n", CurrentTaskItem->
hWnd, CurrentTaskItem->
Index);
399 while (CurrentTaskItem != LastTaskItem)
401 TRACE(
"- Task hwnd: 0x%p Index: %d\n", CurrentTaskItem->
hWnd, CurrentTaskItem->
Index);
414 int offset = bInserted ? +1 : -1;
420 while (CurrentGroup !=
NULL)
423 CurrentGroup->
Index >= iIndex)
429 CurrentGroup->
Index = NewIndex;
432 CurrentGroup->
Index = -1;
435 CurrentGroup = CurrentGroup->
Next;
442 while (CurrentTaskItem != LastTaskItem)
444 CurrentGroup = CurrentTaskItem->
Group;
445 if (CurrentGroup !=
NULL)
448 CurrentTaskItem->
Index >= iIndex)
450 goto UpdateTaskItemBtn;
453 else if (CurrentTaskItem->
Index >= iIndex)
460 CurrentTaskItem->
Index = NewIndex;
463 CurrentTaskItem->
Index = -1;
473 ASSERT(TaskGroup->Index >= 0);
477 return TaskGroup->Index;
482 ASSERT(TaskGroup->dwTaskCount > 0);
483 ASSERT(TaskGroup->IsCollapsed);
484 ASSERT(TaskGroup->Index >= 0);
494#define GET_ICON(type) \
495 SendMessageTimeout(hwnd, WM_GETICON, (type), 0, SMTO_NOTIMEOUTIFNOTHUNG, 100, (PDWORD_PTR)&hIcon)
530 ASSERT(TaskItem->Index >= 0);
532 tbbi.cbSize =
sizeof(tbbi);
538 if (TaskItem->RenderFlashed)
558 tbbi.iImage = TaskItem->IconIndex;
560 if (!
m_TaskBar.SetButtonInfo(TaskItem->Index, &tbbi))
562 TaskItem->Index = -1;
566 TRACE(
"Updated button %d for hwnd 0x%p\n", TaskItem->Index, TaskItem->hWnd);
567 return TaskItem->Index;
575 if (TaskItem->IconIndex == -1)
578 tbbi.cbSize =
sizeof(tbbi);
583 while (currentTaskItem != LastItem)
585 if (currentTaskItem->
IconIndex > TaskItem->IconIndex)
588 tbbi.iImage = currentTaskItem->
IconIndex;
614 while (TaskItem != LastTaskItem)
616 if (TaskItem->
Group == TaskGroup)
618 if ((NewTaskItem !=
NULL && TaskItem != NewTaskItem) || NewTaskItem ==
NULL)
620 FoundTaskItem = TaskItem;
623 if (--dwTaskCount == 0)
633 return FoundTaskItem;
643 TaskGroup = TaskItem->Group;
646 if (TaskGroup !=
NULL)
654 if (LastTaskItem !=
NULL)
659 return LastTaskItem->
Index + 1;
668 if (LastTaskItem !=
NULL)
672 return LastTaskItem->
Index + 1;
687 if (TaskItem->Index >= 0)
692 if (TaskItem->Group !=
NULL &&
693 TaskItem->Group->IsCollapsed)
704 tbBtn.
iBitmap = TaskItem->IconIndex;
707 tbBtn.
dwData = TaskItem->Index;
721 if (
m_TaskBar.InsertButton(iIndex, &tbBtn))
725 TRACE(
"Added button %d for hwnd 0x%p\n", iIndex, TaskItem->hWnd);
727 TaskItem->Index = iIndex;
745 TaskGroup = TaskItem->Group;
747 if (TaskItem->Index >= 0)
755 iIndex = TaskItem->Index;
758 TaskItem->Index = -1;
783 TRACE(
"Cannot get process id of hwnd 0x%p\n",
hWnd);
790 while (TaskGroup !=
NULL)
798 PrevLink = &TaskGroup->
Next;
799 TaskGroup = TaskGroup->
Next;
806 if (TaskGroup !=
NULL)
810 TaskGroup->
Index = -1;
813 *PrevLink = TaskGroup;
823 TaskGroup = TaskItem->Group;
824 if (TaskGroup !=
NULL)
827 if (dwNewTaskCount == 0)
832 while (CurrentGroup != TaskGroup)
834 PrevLink = &CurrentGroup->
Next;
835 CurrentGroup = CurrentGroup->
Next;
839 ASSERT(TaskGroup == CurrentGroup);
840 *PrevLink = TaskGroup->
Next;
848 TaskGroup->
Index >= 0)
850 if (dwNewTaskCount > 1)
871 while (TaskItem != LastItem)
897 while (TaskItem != LastItem)
899 TaskGroup = TaskItem->
Group;
900 if (TaskGroup !=
NULL)
907 DWORD dwProcessIdTask;
911 dwProcessIdTask == dwProcessId)
949 SIZE_T NewArrayLength, ActiveTaskItemIndex;
957 if (NewArray !=
NULL)
1015 if (TaskItem !=
NULL)
1016 TaskGroup = TaskItem->Group;
1019 TaskGroup !=
NULL &&
1026 if (CurrentTaskItem !=
NULL)
1030 if (CurrentTaskItem == TaskItem)
1033 CurrentTaskGroup = CurrentTaskItem->
Group;
1036 CurrentTaskGroup !=
NULL &&
1039 if (CurrentTaskGroup == TaskGroup)
1047 if (CurrentTaskItem->
Index >= 0)
1056 if (TaskItem !=
NULL && TaskItem->Index >= 0)
1060 else if (TaskItem ==
NULL)
1062 TRACE(
"Active TaskItem now NULL\n");
1072 while (TaskItem != LastItem)
1088 while (CurrentGroup !=
NULL)
1093 CurrentGroup = CurrentGroup->
Next;
1096 return CurrentGroup;
1107 if (TaskItem ==
NULL)
1111 if (TaskItem !=
NULL)
1115 TaskItem->
Index = -1;
1125 return TaskItem !=
NULL;
1130 if (TaskItem !=
NULL)
1132 TRACE(
"Activate window 0x%p on button %d\n", TaskItem->hWnd, TaskItem->Index);
1149 if (TaskItem ==
NULL)
1154 if (TaskItem ==
NULL)
1156 WARN(
"Activate window 0x%p, could not find task\n",
hWnd);
1168 if (TaskItem !=
NULL)
1170 TRACE(
"Delete window 0x%p on button %d\n",
hWnd, TaskItem->
Index);
1196 TaskItem->RenderFlashed = 1;
1205 if (TaskItem !=
NULL)
1207 TRACE(
"Flashing window 0x%p on button %d\n",
hWnd, TaskItem->
Index);
1219 TaskGroup = TaskItem->Group;
1226 else if (TaskItem->Index >= 0)
1228 goto UpdateTaskItem;
1231 else if (TaskItem->Index >= 0)
1234 TaskItem->RenderFlashed = 0;
1245 if (TaskItem !=
NULL)
1257 UINT uiRows, uiMax, uiMin, uiBtnsPerLine,
ui;
1274 while (TaskItem != LastTaskItem)
1288 Horizontal =
m_Tray->IsHorizontal();
1293 tbm.
cbSize =
sizeof(tbm);
1313 if (!bRedrawDisabled)
1319 uiRows, uiBtnsPerLine);
1328 NewBtnSize = (rcClient.
right - (uiBtnsPerLine * cxButtonSpacing)) / uiBtnsPerLine;
1330 if (NewBtnSize < (
LONG) uiMin)
1332 if (NewBtnSize >(
LONG)uiMax)
1336 uiBtnsPerLine = rcClient.
right / (NewBtnSize + cxButtonSpacing);
1337 if (uiBtnsPerLine == 0)
1342 NewBtnSize = uiMax = rcClient.
right;
1352 tbbi.
cbSize =
sizeof(tbbi);
1354 tbbi.
cx = (
INT) NewBtnSize;
1361 if ((
ui + 1) % uiBtnsPerLine == 0)
1403 return This->EnumWindowsProc(
hWnd);
1408 TRACE(
"Refreshing window list...\n");
1415 TRACE(
"OmThemeChanged\n");
1483 switch (GET_APPCOMMAND_LPARAM(
lParam))
1485 case APPCOMMAND_BROWSER_SEARCH:
1490 case APPCOMMAND_BROWSER_HOME:
1491 case APPCOMMAND_LAUNCH_MAIL:
1493 TRACE(
"Shell app command %d unhandled!\n", (
INT) GET_APPCOMMAND_LPARAM(
lParam));
1511 TRACE(
"Received shell hook message: wParam=%08lx, lParam=%08lx\n",
wParam,
lParam);
1515 case HSHELL_APPCOMMAND:
1531 case HSHELL_WINDOWACTIVATED:
1544 case HSHELL_TASKMAN:
1553 case HSHELL_LANGUAGE:
1554 case HSHELL_SYSMENU:
1555 case HSHELL_ENDTASK:
1556 case HSHELL_ACCESSIBILITYSTATE:
1557 case HSHELL_WINDOWREPLACED:
1558 case HSHELL_WINDOWREPLACING:
1560 case HSHELL_GETMINRECT:
1565 for (
i = 0, found = 0;
i !=
_countof(hshell_msg);
i++)
1569 TRACE(
"Shell message %ws unhandled (lParam = 0x%p)!\n", hshell_msg[
i].msg_name,
lParam);
1599 TRACE(
"Valid button clicked. HWND=%p, IsMinimized=%s, IsActive=%s...\n",
1600 TaskItem->hWnd, bIsMinimized ?
"Yes" :
"No", bIsActive ?
"Yes" :
"No");
1602 if (!bIsMinimized && bIsActive)
1606 TRACE(
"Valid button clicked. App window Minimized.\n");
1612 TRACE(
"Valid button clicked. App window Restored.\n");
1638 if (TaskItem !=
NULL)
1664 ERR(
"HandleTaskItemRightClick detected the window did not become foreground\n");
1691 if (TaskItem !=
NULL)
1709 if (TaskGroup ==
NULL && TaskItem !=
NULL)
1723 nmtbcd->nmcd.rc.left,
1724 nmtbcd->nmcd.rc.top,
1725 nmtbcd->nmcd.rc.right,
1726 nmtbcd->nmcd.rc.bottom);
1737 else if (TaskGroup !=
NULL)
1855 bSettingsChanged =
TRUE;
1862 bSettingsChanged =
TRUE;
1866 if (bSettingsChanged)
1910 RECT rcItem, rcToolbar;
1916 *prcMinRect = rcItem;
1947 if (
wParam == SPI_SETNONCLIENTMETRICS)
#define InterlockedExchange
#define TWM_OPENSTARTMENU
#define TSWM_UPDATETASKBARPOS
TaskbarSettings g_TaskbarSettings
#define TWM_SETTINGSCHANGED
BOOL SetWindowPos(HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags)
BOOL ScreenToClient(LPPOINT lpPoint) const
void SetRedraw(BOOL bRedraw=TRUE)
BOOL GetWindowRect(LPRECT lpRect) const
BOOL InvalidateRect(LPCRECT lpRect, BOOL bErase=TRUE)
static DWORD CALLBACK s_HardErrorThreadProc(IN OUT LPVOID lpParameter)
void StartThread(PBALLOON_HARD_ERROR_DATA pData)
BOOL HandleAppCommand(IN WPARAM wParam, IN LPARAM lParam)
static BOOL CALLBACK s_EnumWindowsProc(IN HWND hWnd, IN LPARAM lParam)
VOID RedrawTaskItem(IN OUT PTASK_ITEM TaskItem)
LRESULT OnTaskbarSettingsChanged(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
INT UpdateTaskItemButton(IN PTASK_ITEM TaskItem)
INT GetWndTextFromTaskItem(IN PTASK_ITEM TaskItem, LPWSTR szBuf, DWORD cchBuf)
LRESULT OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
PTASK_ITEM FindOtherTaskItem(IN HWND hWnd)
VOID UpdateButtonsSize(IN BOOL bRedrawDisabled)
BOOL HandleButtonClick(IN WORD wIndex)
virtual ~CTaskSwitchWnd()
PTASK_ITEM m_ActiveTaskItem
VOID ExpandTaskGroup(IN PTASK_GROUP TaskGroup)
PTASK_GROUP AddToTaskGroup(IN HWND hWnd)
VOID RemoveIcon(IN PTASK_ITEM TaskItem)
CComPtr< ITrayWindow > m_Tray
VOID CheckActivateTaskItem(IN OUT PTASK_ITEM TaskItem)
HRESULT WINAPI GetWindow(HWND *phwnd)
VOID UpdateIndexesAfter(IN INT iIndex, BOOL bInserted)
VOID SendPulseToTray(BOOL bDelete, HWND hwndActive)
VOID FreeTaskItem(IN OUT PTASK_ITEM TaskItem)
LRESULT OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
PTASK_ITEM AllocTaskItem()
LRESULT OnSettingChanged(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CHardErrorThread m_HardErrorThread
VOID FlashTaskItem(IN OUT PTASK_ITEM TaskItem)
VOID RemoveTaskFromTaskGroup(IN OUT PTASK_ITEM TaskItem)
BOOL FlashTask(IN HWND hWnd)
PTASK_ITEM FindLastTaskItemOfGroup(IN PTASK_GROUP TaskGroup OPTIONAL, IN PTASK_ITEM NewTaskItem OPTIONAL)
LRESULT OnShellHook(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
INT AddTaskItemButton(IN OUT PTASK_ITEM TaskItem)
LRESULT OnMouseActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL ActivateTask(IN HWND hWnd)
INT UpdateTaskGroupButton(IN PTASK_GROUP TaskGroup)
VOID DeleteTaskItem(IN OUT PTASK_ITEM TaskItem)
BOOL ActivateTaskItem(IN OUT PTASK_ITEM TaskItem OPTIONAL)
LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL RedrawTask(IN HWND hWnd)
PTASK_GROUP FindTaskGroupByIndex(IN INT Index)
LRESULT OnKludgeItemRect(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL DeleteTaskItemButton(IN OUT PTASK_ITEM TaskItem)
HICON GetWndIcon(HWND hwnd)
LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
VOID HandleTaskGroupRightClick(IN OUT PTASK_GROUP TaskGroup)
BOOL CALLBACK EnumWindowsProc(IN HWND hWnd)
LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
WORD m_AllocatedTaskItems
HRESULT WINAPI ContextSensitiveHelp(BOOL fEnterMode)
LRESULT OnThemeChanged(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnSetFont(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
VOID HandleTaskGroupClick(IN OUT PTASK_GROUP TaskGroup)
LRESULT OnEraseBackground(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
PTASK_ITEM FindTaskItem(IN HWND hWnd)
LRESULT HandleItemPaint(IN OUT NMTBCUSTOMDRAW *nmtbcd)
PTASK_ITEM FindTaskItemByIndex(IN INT Index)
VOID HandleTaskItemClick(IN OUT PTASK_ITEM TaskItem)
LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
static VOID CALLBACK SendAsyncProc(HWND hwnd, UINT uMsg, DWORD_PTR dwData, LRESULT lResult)
VOID HandleTaskItemRightClick(IN OUT PTASK_ITEM TaskItem)
BOOL DeleteTask(IN HWND hWnd)
HRESULT Initialize(IN HWND hWndParent, IN OUT ITrayWindow *tray)
INT CalculateTaskItemNewButtonIndex(IN PTASK_ITEM TaskItem)
LRESULT OnUpdateTaskbarPos(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnCopyData(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT HandleToolbarNotification(IN const NMHDR *nmh)
BOOL HandleButtonRightClick(IN WORD wIndex)
BOOL AddTask(IN HWND hWnd)
BOOL WINAPI ImageList_SetIconSize(HIMAGELIST himl, INT cx, INT cy)
BOOL WINAPI ImageList_Remove(HIMAGELIST himl, INT i)
INT WINAPI ImageList_ReplaceIcon(HIMAGELIST himl, INT nIndex, HICON hIcon)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
BOOL WINAPI ImageList_GetIconSize(HIMAGELIST himl, INT *cx, INT *cy)
#define HeapFree(x, y, z)
#define FAILED_UNEXPECTEDLY(hr)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
BOOL WINAPI TerminateThread(IN HANDLE hThread, IN DWORD dwExitCode)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI DECLSPEC_HOTPATCH OleInitialize(LPVOID reserved)
void WINAPI DECLSPEC_HOTPATCH OleUninitialize(void)
HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect)
HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
BOOL WINAPI IsThemeActive(void)
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
BOOL WINAPI IsAppThemed(void)
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)
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
#define DECLARE_NOT_AGGREGATABLE(x)
#define MESSAGE_HANDLER(msg, func)
#define BEGIN_MSG_MAP(theClass)
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
static HANDLE ULONG_PTR dwData
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
const GUID IID_IOleWindow
_Out_opt_ int _Out_opt_ int * cy
#define CDDS_ITEMPREPAINT
#define CDRF_NOTIFYITEMDRAW
#define TBCDRF_NOBACKGROUND
#define TBSTYLE_TRANSPARENT
#define TBMF_BUTTONSPACING
struct _NMTBCUSTOMDRAW * LPNMTBCUSTOMDRAW
BOOL WINAPI RegisterShellHook(HWND hWnd, DWORD dwType)
BOOL WINAPI SHFindFiles(PCIDLIST_ABSOLUTE pidlFolder, PCIDLIST_ABSOLUTE pidlSaveFile)
PULONG MinorVersion OPTIONAL
struct _TASK_GROUP * Next
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
struct _TASK_ITEM * PTASK_ITEM
HRESULT CTaskSwitchWnd_CreateInstance(IN HWND hWndParent, IN OUT ITrayWindow *Tray, REFIID riid, void **ppv)
#define TASK_ITEM_ARRAY_ALLOC
struct _TASK_GROUP TASK_GROUP
const WCHAR szTaskSwitchWndClass[]
const WCHAR szRunningApps[]
struct _TASK_GROUP * PTASK_GROUP
struct _TASK_ITEM TASK_ITEM
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
struct _BALLOON_HARD_ERROR_DATA * PBALLOON_HARD_ERROR_DATA
#define WM_POPUPSYSTEMMENU
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
_In_ WDFCOLLECTION _In_ ULONG Index
VOID WINAPI SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
BOOL WINAPI IsHungAppWindow(HWND hwnd)
DWORD WINAPI GetWindowThreadProcessId(HWND hWnd, PDWORD lpdwProcessId)
#define SubclassWindow(hwnd, lpfn)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
DWORD WINAPI GetSysColor(_In_ int)
#define HSHELL_RUDEAPPACTIVATED
#define HSHELL_ACTIVATESHELLWINDOW
HWND WINAPI GetForegroundWindow(void)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define HSHELL_WINDOWDESTROYED
#define HSHELL_WINDOWCREATED
HBRUSH WINAPI GetSysColorBrush(_In_ int)
struct tagCOPYDATASTRUCT * PCOPYDATASTRUCT
BOOL WINAPI SetForegroundWindow(_In_ HWND)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
BOOL WINAPI IsRectEmpty(_In_ LPCRECT)
#define PostThreadMessage
BOOL WINAPI SendMessageCallbackW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ SENDASYNCPROC, _In_ ULONG_PTR)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
BOOL WINAPI ShowWindowAsync(_In_ HWND, _In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EnumWindows(_In_ WNDENUMPROC lpEnumFunc, _In_ LPARAM lParam)
UINT WINAPI RegisterWindowMessageW(_In_ LPCWSTR)
#define COLOR_HIGHLIGHTTEXT
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
#define MAKEINTRESOURCEW(i)
INT WINAPI InternalGetWindowText(_In_ HWND hWnd, _Out_writes_to_(cchMaxCount, return+1) LPWSTR pString, _In_ int cchMaxCount)
int WINAPI GetSystemMetrics(_In_ int)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)
#define IID_PPV_ARG(Itype, ppType)