ReactOS  0.4.15-dev-4927-gfe8f806
applpage.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

INT_PTR CALLBACK ApplicationPageWndProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 
void RefreshApplicationPage (void)
 
void UpdateApplicationListControlViewSetting (void)
 
void ApplicationPage_OnView (DWORD)
 
void ApplicationPage_OnWindowsTile (DWORD)
 
void ApplicationPage_OnWindowsMinimize (void)
 
void ApplicationPage_OnWindowsMaximize (void)
 
void ApplicationPage_OnWindowsCascade (void)
 
void ApplicationPage_OnWindowsBringToFront (void)
 
void ApplicationPage_OnSwitchTo (void)
 
void ApplicationPage_OnEndTask (void)
 
void ApplicationPage_OnGotoProcess (void)
 

Variables

HWND hApplicationPage
 
HWND hApplicationPageListCtrl
 
HWND hApplicationPageEndTaskButton
 
HWND hApplicationPageSwitchToButton
 
HWND hApplicationPageNewTaskButton
 

Function Documentation

◆ ApplicationPage_OnEndTask()

void ApplicationPage_OnEndTask ( void  )

Definition at line 892 of file applpage.c.

893 {
895  LV_ITEM item;
896  int i;
897 
898  /* Trick: on Windows, pressing the CTRL key forces the task to be ended */
899  BOOL ForceEndTask = !!(GetKeyState(VK_CONTROL) & 0x8000);
900 
902  memset(&item, 0, sizeof(LV_ITEM));
903  item.mask = LVIF_STATE|LVIF_PARAM;
904  item.iItem = i;
905  item.stateMask = (UINT)-1;
907  if (item.state & LVIS_SELECTED) {
908  pAPLI = (LPAPPLICATION_PAGE_LIST_ITEM)item.lParam;
909  if (pAPLI) {
910  EndTask(pAPLI->hWnd, 0, ForceEndTask);
911  }
912  }
913  }
914 }
#define LV_ITEM
Definition: commctrl.h:2337
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
if(dx==0 &&dy==0)
Definition: linetemp.h:174
HWND hApplicationPageListCtrl
Definition: applpage.c:36
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LVIS_SELECTED
Definition: commctrl.h:2319
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2307
SHORT WINAPI GetKeyState(_In_ int)
struct APPLICATION_PAGE_LIST_ITEM * LPAPPLICATION_PAGE_LIST_ITEM
static ATOM item
Definition: dde.c:856
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
Definition: glfuncs.h:248
BOOL WINAPI EndTask(HWND hWnd, BOOL fShutDown, BOOL fForce)
Definition: exit.c:207
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define VK_CONTROL
Definition: winuser.h:2183
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2394
#define LVIF_PARAM
Definition: commctrl.h:2311
#define LVIF_STATE
Definition: commctrl.h:2312
#define memset(x, y, z)
Definition: compat.h:39

Referenced by ApplicationPageOnNotify(), ApplicationPageWndProc(), and TaskManagerWndProc().

◆ ApplicationPage_OnGotoProcess()

void ApplicationPage_OnGotoProcess ( void  )

Definition at line 916 of file applpage.c.

917 {
919  LV_ITEM item;
920  int i;
921 
923  memset(&item, 0, sizeof(LV_ITEM));
924  item.mask = LVIF_STATE|LVIF_PARAM;
925  item.iItem = i;
926  item.stateMask = (UINT)-1;
928  if (item.state & LVIS_SELECTED) {
929  pAPLI = (LPAPPLICATION_PAGE_LIST_ITEM)item.lParam;
930  break;
931  }
932  }
933  if (pAPLI) {
934  DWORD dwProcessId;
935 
936  GetWindowThreadProcessId(pAPLI->hWnd, &dwProcessId);
937  /*
938  * Switch to the process tab
939  */
941  /*
942  * Select the process item in the list
943  */
944  i = ProcGetIndexByProcessId(dwProcessId);
945  if (i != -1)
946  {
948  i,
952  i,
953  FALSE);
954  }
955  }
956 }
#define ListView_EnsureVisible(hwndLV, i, fPartialOK)
Definition: commctrl.h:2519
#define LV_ITEM
Definition: commctrl.h:2337
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
DWORD WINAPI GetWindowThreadProcessId(HWND hWnd, PDWORD lpdwProcessId)
HWND hApplicationPageListCtrl
Definition: applpage.c:36
#define FALSE
Definition: types.h:117
#define ListView_SetItemState(hwndLV, i, data, mask)
Definition: commctrl.h:2673
HWND hTabWnd
Definition: msconfig.c:22
#define LVIS_SELECTED
Definition: commctrl.h:2319
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2307
int ProcGetIndexByProcessId(DWORD dwProcessId)
Definition: procpage.c:83
unsigned long DWORD
Definition: ntddk_ex.h:95
struct APPLICATION_PAGE_LIST_ITEM * LPAPPLICATION_PAGE_LIST_ITEM
static ATOM item
Definition: dde.c:856
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
Definition: glfuncs.h:248
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2394
#define LVIF_PARAM
Definition: commctrl.h:2311
#define LVIF_STATE
Definition: commctrl.h:2312
#define memset(x, y, z)
Definition: compat.h:39
HWND hProcessPageListCtrl
Definition: procpage.c:43
#define LVIS_FOCUSED
Definition: commctrl.h:2318
#define TabCtrl_SetCurFocus(hwnd, i)
Definition: commctrl.h:4102

Referenced by TaskManagerWndProc().

◆ ApplicationPage_OnSwitchTo()

void ApplicationPage_OnSwitchTo ( void  )

Definition at line 867 of file applpage.c.

868 {
870  LV_ITEM item;
871  int i;
872 
874  memset(&item, 0, sizeof(LV_ITEM));
875  item.mask = LVIF_STATE|LVIF_PARAM;
876  item.iItem = i;
877  item.stateMask = (UINT)-1;
879 
880  if (item.state & LVIS_SELECTED) {
881  pAPLI = (LPAPPLICATION_PAGE_LIST_ITEM)item.lParam;
882  break;
883  }
884  }
885  if (pAPLI) {
886  SwitchToThisWindow(pAPLI->hWnd, TRUE);
889  }
890 }
#define LV_ITEM
Definition: commctrl.h:2337
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
#define TRUE
Definition: types.h:120
HWND hApplicationPageListCtrl
Definition: applpage.c:36
BOOL WINAPI ShowWindowAsync(_In_ HWND, _In_ int)
#define LVIS_SELECTED
Definition: commctrl.h:2319
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2307
#define SW_MINIMIZE
Definition: winuser.h:770
HWND hMainWnd
Definition: magnifier.c:32
struct APPLICATION_PAGE_LIST_ITEM * LPAPPLICATION_PAGE_LIST_ITEM
static ATOM item
Definition: dde.c:856
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
Definition: glfuncs.h:248
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2394
#define LVIF_PARAM
Definition: commctrl.h:2311
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:52
#define LVIF_STATE
Definition: commctrl.h:2312
#define memset(x, y, z)
Definition: compat.h:39
VOID WINAPI SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
Definition: window.c:82

Referenced by ApplicationPageOnNotify(), ApplicationPageWndProc(), and TaskManagerWndProc().

◆ ApplicationPage_OnView()

void ApplicationPage_OnView ( DWORD  )

Definition at line 729 of file applpage.c.

730 {
731  HMENU hMenu;
732  HMENU hViewMenu;
733 
734  hMenu = GetMenu(hMainWnd);
735  hViewMenu = GetSubMenu(hMenu, 2);
736 
737  TaskManagerSettings.ViewMode = dwMode;
739 
741 }
#define ID_VIEW_DETAILS
Definition: resource.h:36
#define MF_BYCOMMAND
Definition: winuser.h:202
BOOL WINAPI CheckMenuRadioItem(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT, _In_ UINT)
void UpdateApplicationListControlViewSetting(void)
Definition: applpage.c:250
HWND hMainWnd
Definition: magnifier.c:32
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:52
HMENU WINAPI GetMenu(_In_ HWND)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
#define ID_VIEW_LARGE
Definition: resource.h:33

Referenced by TaskManagerWndProc().

◆ ApplicationPage_OnWindowsBringToFront()

void ApplicationPage_OnWindowsBringToFront ( void  )

Definition at line 845 of file applpage.c.

846 {
848  LV_ITEM item;
849  int i;
850 
852  memset(&item, 0, sizeof(LV_ITEM));
853  item.mask = LVIF_STATE|LVIF_PARAM;
854  item.iItem = i;
855  item.stateMask = (UINT)-1;
857  if (item.state & LVIS_SELECTED) {
858  pAPLI = (LPAPPLICATION_PAGE_LIST_ITEM)item.lParam;
859  break;
860  }
861  }
862  if (pAPLI) {
863  SwitchToThisWindow(pAPLI->hWnd, TRUE);
864  }
865 }
#define LV_ITEM
Definition: commctrl.h:2337
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
#define TRUE
Definition: types.h:120
HWND hApplicationPageListCtrl
Definition: applpage.c:36
#define LVIS_SELECTED
Definition: commctrl.h:2319
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2307
struct APPLICATION_PAGE_LIST_ITEM * LPAPPLICATION_PAGE_LIST_ITEM
static ATOM item
Definition: dde.c:856
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
Definition: glfuncs.h:248
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2394
#define LVIF_PARAM
Definition: commctrl.h:2311
#define LVIF_STATE
Definition: commctrl.h:2312
#define memset(x, y, z)
Definition: compat.h:39
VOID WINAPI SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
Definition: window.c:82

Referenced by TaskManagerWndProc().

◆ ApplicationPage_OnWindowsCascade()

void ApplicationPage_OnWindowsCascade ( void  )

Definition at line 816 of file applpage.c.

817 {
819  LV_ITEM item;
820  int i;
821  HWND* hWndArray;
822  int nWndCount;
823 
825  nWndCount = 0;
826 
828  memset(&item, 0, sizeof(LV_ITEM));
829  item.mask = LVIF_STATE|LVIF_PARAM;
830  item.iItem = i;
831  item.stateMask = (UINT)-1;
833  if (item.state & LVIS_SELECTED) {
834  pAPLI = (LPAPPLICATION_PAGE_LIST_ITEM)item.lParam;
835  if (pAPLI) {
836  hWndArray[nWndCount] = pAPLI->hWnd;
837  nWndCount++;
838  }
839  }
840  }
841  CascadeWindows(NULL, 0, NULL, nWndCount, hWndArray);
842  HeapFree(GetProcessHeap(), 0, hWndArray);
843 }
#define LV_ITEM
Definition: commctrl.h:2337
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
HANDLE HWND
Definition: compat.h:19
if(dx==0 &&dy==0)
Definition: linetemp.h:174
HWND hApplicationPageListCtrl
Definition: applpage.c:36
#define LVIS_SELECTED
Definition: commctrl.h:2319
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2307
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
struct APPLICATION_PAGE_LIST_ITEM * LPAPPLICATION_PAGE_LIST_ITEM
static ATOM item
Definition: dde.c:856
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
Definition: glfuncs.h:248
WORD WINAPI CascadeWindows(_In_opt_ HWND hwndParent, _In_ UINT wHow, _In_opt_ CONST RECT *lpRect, _In_ UINT cKids, _In_reads_opt_(cKids) const HWND FAR *lpKids)
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2394
#define LVIF_PARAM
Definition: commctrl.h:2311
#define LVIF_STATE
Definition: commctrl.h:2312
#define memset(x, y, z)
Definition: compat.h:39
#define HeapFree(x, y, z)
Definition: compat.h:594

Referenced by TaskManagerWndProc().

◆ ApplicationPage_OnWindowsMaximize()

void ApplicationPage_OnWindowsMaximize ( void  )

Definition at line 795 of file applpage.c.

796 {
798  LV_ITEM item;
799  int i;
800 
802  memset(&item, 0, sizeof(LV_ITEM));
803  item.mask = LVIF_STATE|LVIF_PARAM;
804  item.iItem = i;
805  item.stateMask = (UINT)-1;
807  if (item.state & LVIS_SELECTED) {
808  pAPLI = (LPAPPLICATION_PAGE_LIST_ITEM)item.lParam;
809  if (pAPLI) {
811  }
812  }
813  }
814 }
#define LV_ITEM
Definition: commctrl.h:2337
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
if(dx==0 &&dy==0)
Definition: linetemp.h:174
HWND hApplicationPageListCtrl
Definition: applpage.c:36
BOOL WINAPI ShowWindowAsync(_In_ HWND, _In_ int)
#define LVIS_SELECTED
Definition: commctrl.h:2319
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2307
struct APPLICATION_PAGE_LIST_ITEM * LPAPPLICATION_PAGE_LIST_ITEM
static ATOM item
Definition: dde.c:856
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
Definition: glfuncs.h:248
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2394
#define LVIF_PARAM
Definition: commctrl.h:2311
#define LVIF_STATE
Definition: commctrl.h:2312
#define memset(x, y, z)
Definition: compat.h:39
#define SW_MAXIMIZE
Definition: winuser.h:766

Referenced by TaskManagerWndProc().

◆ ApplicationPage_OnWindowsMinimize()

void ApplicationPage_OnWindowsMinimize ( void  )

Definition at line 774 of file applpage.c.

775 {
777  LV_ITEM item;
778  int i;
779 
781  memset(&item, 0, sizeof(LV_ITEM));
782  item.mask = LVIF_STATE|LVIF_PARAM;
783  item.iItem = i;
784  item.stateMask = (UINT)-1;
786  if (item.state & LVIS_SELECTED) {
787  pAPLI = (LPAPPLICATION_PAGE_LIST_ITEM)item.lParam;
788  if (pAPLI) {
790  }
791  }
792  }
793 }
#define LV_ITEM
Definition: commctrl.h:2337
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
if(dx==0 &&dy==0)
Definition: linetemp.h:174
HWND hApplicationPageListCtrl
Definition: applpage.c:36
BOOL WINAPI ShowWindowAsync(_In_ HWND, _In_ int)
#define LVIS_SELECTED
Definition: commctrl.h:2319
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2307
#define SW_MINIMIZE
Definition: winuser.h:770
struct APPLICATION_PAGE_LIST_ITEM * LPAPPLICATION_PAGE_LIST_ITEM
static ATOM item
Definition: dde.c:856
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
Definition: glfuncs.h:248
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2394
#define LVIF_PARAM
Definition: commctrl.h:2311
#define LVIF_STATE
Definition: commctrl.h:2312
#define memset(x, y, z)
Definition: compat.h:39

Referenced by TaskManagerWndProc().

◆ ApplicationPage_OnWindowsTile()

void ApplicationPage_OnWindowsTile ( DWORD  )

Definition at line 743 of file applpage.c.

744 {
746  LV_ITEM item;
747  int i;
748  HWND* hWndArray;
749  int nWndCount;
750 
752  nWndCount = 0;
753 
755  memset(&item, 0, sizeof(LV_ITEM));
756  item.mask = LVIF_STATE|LVIF_PARAM;
757  item.iItem = i;
758  item.stateMask = (UINT)-1;
760 
761  if (item.state & LVIS_SELECTED) {
762  pAPLI = (LPAPPLICATION_PAGE_LIST_ITEM)item.lParam;
763  if (pAPLI) {
764  hWndArray[nWndCount] = pAPLI->hWnd;
765  nWndCount++;
766  }
767  }
768  }
769 
770  TileWindows(NULL, dwMode, NULL, nWndCount, hWndArray);
771  HeapFree(GetProcessHeap(), 0, hWndArray);
772 }
#define LV_ITEM
Definition: commctrl.h:2337
WORD WINAPI TileWindows(_In_opt_ HWND hwndParent, _In_ UINT wHow, _In_opt_ CONST RECT *lpRect, _In_ UINT cKids, _In_reads_opt_(cKids) const HWND FAR *lpKids)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
HANDLE HWND
Definition: compat.h:19
if(dx==0 &&dy==0)
Definition: linetemp.h:174
HWND hApplicationPageListCtrl
Definition: applpage.c:36
#define LVIS_SELECTED
Definition: commctrl.h:2319
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2307
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
struct APPLICATION_PAGE_LIST_ITEM * LPAPPLICATION_PAGE_LIST_ITEM
static ATOM item
Definition: dde.c:856
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
Definition: glfuncs.h:248
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2394
#define LVIF_PARAM
Definition: commctrl.h:2311
#define LVIF_STATE
Definition: commctrl.h:2312
#define memset(x, y, z)
Definition: compat.h:39
#define HeapFree(x, y, z)
Definition: compat.h:594

Referenced by TaskManagerWndProc().

◆ ApplicationPageWndProc()

INT_PTR CALLBACK ApplicationPageWndProc ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 104 of file applpage.c.

105 {
106  RECT rc;
107  int nXDifference;
108  int nYDifference;
110  WCHAR szTemp[256];
111  int cx, cy;
112 
113  switch (message) {
114  case WM_INITDIALOG:
115 
116  /* Save the width and height */
117  GetClientRect(hDlg, &rc);
120 
121  /* Update window position */
123 
124  /* Get handles to the controls */
129 
131 
132  /* Initialize the application page's controls */
133  column.mask = LVCF_TEXT|LVCF_WIDTH;
134 
135  LoadStringW(hInst, IDS_TAB_TASK, szTemp, 256);
136  column.pszText = szTemp;
137  column.cx = 250;
138  (void)ListView_InsertColumn(hApplicationPageListCtrl, 0, &column); /* Add the "Task" column */
139  column.mask = LVCF_TEXT|LVCF_WIDTH;
140  LoadStringW(hInst, IDS_TAB_STATUS, szTemp, 256);
141  column.pszText = szTemp;
142  column.cx = 95;
143  (void)ListView_InsertColumn(hApplicationPageListCtrl, 1, &column); /* Add the "Status" column */
144 
147 
149 
150  /* Start our refresh thread */
151 #ifdef RUN_APPS_PAGE
153 #endif
154 
155  /* Refresh page */
157 
158  return TRUE;
159 
160  case WM_DESTROY:
161  /* Close refresh thread */
162 #ifdef RUN_APPS_PAGE
164 #endif
165  AppPageCleanup();
166  break;
167 
168  case WM_COMMAND:
169 
170  /* Handle the button clicks */
171  switch (LOWORD(wParam))
172  {
173  case IDC_ENDTASK:
175  break;
176  case IDC_SWITCHTO:
178  break;
179  case IDC_NEWTASK:
181  break;
182  }
183 
184  break;
185 
186  case WM_SIZE:
187  if (wParam == SIZE_MINIMIZED)
188  return 0;
189 
190  cx = LOWORD(lParam);
191  cy = HIWORD(lParam);
192  nXDifference = cx - nApplicationPageWidth;
193  nYDifference = cy - nApplicationPageHeight;
196 
197  /* Reposition the application page's controls */
199  cx = (rc.right - rc.left) + nXDifference;
200  cy = (rc.bottom - rc.top) + nYDifference;
203 
205  MapWindowPoints(hApplicationPageEndTaskButton, hDlg, (LPPOINT)(PRECT)(&rc), sizeof(RECT)/sizeof(POINT));
206  cx = rc.left + nXDifference;
207  cy = rc.top + nYDifference;
210 
212  MapWindowPoints(hApplicationPageSwitchToButton, hDlg, (LPPOINT)(PRECT)(&rc), sizeof(RECT)/sizeof(POINT));
213  cx = rc.left + nXDifference;
214  cy = rc.top + nYDifference;
217 
219  MapWindowPoints(hApplicationPageNewTaskButton, hDlg, (LPPOINT)(PRECT)(&rc), sizeof(RECT)/sizeof(POINT));
220  cx = rc.left + nXDifference;
221  cy = rc.top + nYDifference;
224 
225  break;
226 
227  case WM_NOTIFY:
229  break;
230 
231  case WM_KEYDOWN:
232  if (wParam == VK_DELETE)
234  break;
235 
236  }
237 
238  return 0;
239 }
Definition: tftpd.h:59
void AppPageCleanup(void)
Definition: applpage.c:86
#define MAKEWPARAM(l, h)
Definition: winuser.h:3989
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
#define LVCF_WIDTH
Definition: commctrl.h:2587
#define LVSIL_SMALL
Definition: commctrl.h:2299
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
#define LVCF_TEXT
Definition: commctrl.h:2588
#define TRUE
Definition: types.h:120
#define LV_COLUMN
Definition: commctrl.h:2547
static INT GetSystemColorDepth(VOID)
Definition: applpage.c:62
static HANDLE hApplicationThread
Definition: applpage.c:57
LONG top
Definition: windef.h:307
#define IDC_APPLIST
Definition: resource.h:35
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
LONG left
Definition: windef.h:306
#define SWP_NOZORDER
Definition: winuser.h:1237
DWORD EndLocalThread(HANDLE *hThread, DWORD dwThread)
Definition: taskmgr.c:1181
LONG right
Definition: windef.h:308
HWND hApplicationPageListCtrl
Definition: applpage.c:36
#define IDC_SWITCHTO
Definition: resource.h:32
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
WPARAM wParam
Definition: combotst.c:138
HWND hApplicationPageNewTaskButton
Definition: applpage.c:39
static DWORD dwApplicationThread
Definition: applpage.c:58
#define ListView_InsertColumn(hwnd, iCol, pcol)
Definition: commctrl.h:2636
#define L(x)
Definition: ntvdm.h:50
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
Definition: imagelist.c:804
#define IDC_NEWTASK
Definition: resource.h:33
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:585
static int nApplicationPageHeight
Definition: applpage.c:41
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)
Definition: thread.c:137
#define ListView_SetImageList(hwnd, himl, iImageList)
Definition: commctrl.h:2304
void ProcessPage_OnEndProcess(void)
Definition: endproc.c:30
#define WM_KEYDOWN
Definition: winuser.h:1702
#define VK_DELETE
Definition: winuser.h:2213
#define WM_DESTROY
Definition: winuser.h:1596
#define ID_FILE_NEW
Definition: resource.h:40
#define IDC_ENDTASK
Definition: resource.h:31
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
void ApplicationPage_OnEndTask(void)
Definition: applpage.c:892
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define WM_SIZE
Definition: winuser.h:1598
#define SWP_NOACTIVATE
Definition: winuser.h:1232
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
void UpdateApplicationListControlViewSetting(void)
Definition: applpage.c:250
#define SIZE_MINIMIZED
Definition: winuser.h:2486
static int nApplicationPageWidth
Definition: applpage.c:40
HWND hMainWnd
Definition: magnifier.c:32
#define ILC_MASK
Definition: commctrl.h:351
HWND hApplicationPageSwitchToButton
Definition: applpage.c:38
#define LVSIL_NORMAL
Definition: commctrl.h:2298
#define WM_COMMAND
Definition: winuser.h:1727
#define SWP_NOSIZE
Definition: winuser.h:1235
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HINSTANCE hInst
Definition: dxdiag.c:13
void ApplicationPageOnNotify(WPARAM wParam, LPARAM lParam)
Definition: applpage.c:568
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define NULL
Definition: types.h:112
_Out_opt_ int * cx
Definition: commctrl.h:585
HWND hApplicationPageEndTaskButton
Definition: applpage.c:37
#define HIWORD(l)
Definition: typedefs.h:247
LONG bottom
Definition: windef.h:309
DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter)
Definition: applpage.c:266
#define SWP_NOMOVE
Definition: winuser.h:1234
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
void ApplicationPageUpdate(void)
Definition: applpage.c:504
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define IDS_TAB_STATUS
Definition: resource.h:201
GLenum GLenum GLvoid GLvoid * column
Definition: glext.h:5664
#define IDS_TAB_TASK
Definition: resource.h:200
#define WM_INITDIALOG
Definition: winuser.h:1726
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82
#define WM_NOTIFY
Definition: richedit.h:61
#define SWP_NOOWNERZORDER
Definition: winuser.h:1239
void ApplicationPage_OnSwitchTo(void)
Definition: applpage.c:867

Referenced by OnCreate().

◆ RefreshApplicationPage()

void RefreshApplicationPage ( void  )

Definition at line 241 of file applpage.c.

242 {
243 #ifdef RUN_APPS_PAGE
244  /* Signal the event so that our refresh thread */
245  /* will wake up and refresh the application page */
247 #endif
248 }
static DWORD dwApplicationThread
Definition: applpage.c:58
#define WM_TIMER
Definition: winuser.h:1729
#define PostThreadMessage
Definition: winuser.h:5813

Referenced by OnCreate(), TaskManagerWndProc(), and UpdateApplicationListControlViewSetting().

◆ UpdateApplicationListControlViewSetting()

void UpdateApplicationListControlViewSetting ( void  )

Definition at line 250 of file applpage.c.

251 {
253 
254  dwStyle &= ~(LVS_REPORT | LVS_ICON | LVS_LIST | LVS_SMALLICON);
255 
256  switch (TaskManagerSettings.ViewMode) {
257  case ID_VIEW_LARGE: dwStyle |= LVS_ICON; break;
258  case ID_VIEW_SMALL: dwStyle |= LVS_SMALLICON; break;
259  case ID_VIEW_DETAILS: dwStyle |= LVS_REPORT; break;
260  }
262 
264 }
#define ID_VIEW_DETAILS
Definition: resource.h:36
#define LVS_REPORT
Definition: commctrl.h:2262
#define GetWindowLongPtrW
Definition: winuser.h:4809
HWND hApplicationPageListCtrl
Definition: applpage.c:36
#define LVS_LIST
Definition: commctrl.h:2264
void RefreshApplicationPage(void)
Definition: applpage.c:241
unsigned long DWORD
Definition: ntddk_ex.h:95
#define LVS_ICON
Definition: commctrl.h:2261
#define ID_VIEW_SMALL
Definition: resource.h:34
#define GWL_STYLE
Definition: winuser.h:846
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:52
#define SetWindowLongPtrW
Definition: winuser.h:5326
#define LVS_SMALLICON
Definition: commctrl.h:2263
#define ID_VIEW_LARGE
Definition: resource.h:33

Referenced by ApplicationPage_OnView(), and ApplicationPageWndProc().

Variable Documentation

◆ hApplicationPage

HWND hApplicationPage

Definition at line 35 of file applpage.c.

Referenced by OnCreate(), OnMove(), OnSize(), and TaskManager_OnTabWndSelChange().

◆ hApplicationPageEndTaskButton

HWND hApplicationPageEndTaskButton

Definition at line 37 of file applpage.c.

Referenced by ApplicationPageUpdate(), and ApplicationPageWndProc().

◆ hApplicationPageListCtrl

◆ hApplicationPageNewTaskButton

HWND hApplicationPageNewTaskButton

Definition at line 39 of file applpage.c.

Referenced by ApplicationPageWndProc().

◆ hApplicationPageSwitchToButton

HWND hApplicationPageSwitchToButton

Definition at line 38 of file applpage.c.

Referenced by ApplicationPageUpdate(), and ApplicationPageWndProc().