ReactOS  0.4.15-dev-985-gd905dd5
mainwnd.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 MainWindow_WndProc (HWND, UINT, WPARAM, LPARAM)
 

Function Documentation

◆ MainWindow_WndProc()

INT_PTR CALLBACK MainWindow_WndProc ( HWND  ,
UINT  ,
WPARAM  ,
LPARAM   
)

Definition at line 81 of file mainwnd.c.

82 {
83  switch (message)
84  {
85  case WM_INITDIALOG:
86  {
87  RECT rect;
88 
93  g_Separator = (rect.right / 2);
97 
98  break;
99  }
100  case WM_SIZE:
101  return MainWindow_OnSize(hMainWnd);
102 
103  case WM_COMMAND:
104  {
105  switch (LOWORD(wParam))
106  {
107  case IDOK:
108  case IDCANCEL:
109  {
111  break;
112  }
113  case IDC_REFRESHHANDLE:
114  {
115  LV_ITEM item;
116  HWND hProcessListCtrl = GetDlgItem(hMainWnd, IDC_PROCESSLIST);
117  memset(&item, 0, sizeof(LV_ITEM));
118  item.mask = LVIF_PARAM;
119  item.iItem = ListView_GetSelectionMark(hProcessListCtrl);
120  (void)ListView_GetItem(hProcessListCtrl, &item);
122  break;
123  }
124  case IDC_REFRESHPROCESS:
125  {
127  break;
128  }
129  default:
130  {
131  return FALSE;
132  }
133  }
134  break;
135  }
136 
137  case WM_NOTIFY:
139 
140  default:
141  {
142  return FALSE;
143  }
144  }
145  return TRUE;
146 }
#define LV_ITEM
Definition: commctrl.h:2333
#define MAKEINTRESOURCE
Definition: winuser.h:591
Definition: tftpd.h:59
#define IDOK
Definition: winuser.h:824
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
#define IDC_PROCESSLIST
Definition: resource.h:37
#define TRUE
Definition: types.h:120
VOID HandleList_Create(HWND hListCtrl)
Definition: handlelist.c:26
#define LVS_EX_FULLROWSELECT
Definition: commctrl.h:2730
& rect
Definition: startmenu.cpp:1413
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
WPARAM wParam
Definition: combotst.c:138
#define FALSE
Definition: types.h:117
#define IDC_REFRESHHANDLE
Definition: resource.h:5
VOID ProcessList_Create(HWND hListCtrl)
Definition: proclist.c:26
LONG_PTR LPARAM
Definition: windef.h:208
VOID HandleList_Update(HWND hHandleListCtrl, HANDLE ProcessId)
Definition: handlelist.c:69
#define IDC_REFRESHPROCESS
Definition: resource.h:6
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define WM_SIZE
Definition: winuser.h:1593
static LRESULT MainWnd_OnNotify(HWND hWnd, WPARAM wParam, LPARAM lParam)
Definition: mainwnd.c:52
#define ListView_SetExtendedListViewStyle(hwndLV, dw)
Definition: commctrl.h:2721
HWND hMainWnd
Definition: magnifier.c:32
#define IDI_MAIN
Definition: resource.h:4
VOID ProcessList_Update(HWND hListCtrl)
Definition: proclist.c:44
#define WM_COMMAND
Definition: winuser.h:1722
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
static ATOM item
Definition: dde.c:856
#define IDC_HANDLELIST
Definition: resource.h:4
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2390
#define SendMessage
Definition: winuser.h:5818
#define LVIF_PARAM
Definition: commctrl.h:2307
#define LoadIcon
Definition: winuser.h:5788
HINSTANCE g_hInstance
Definition: MainWindow.cpp:18
#define ListView_GetSelectionMark(hwnd)
Definition: commctrl.h:2785
#define IDCANCEL
Definition: winuser.h:825
#define memset(x, y, z)
Definition: compat.h:39
static LRESULT MainWindow_OnSize(HWND hMainWnd)
Definition: mainwnd.c:29
#define WM_INITDIALOG
Definition: winuser.h:1721
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82
INT g_Separator
Definition: mainwnd.c:25
#define WM_NOTIFY
Definition: richedit.h:61
#define ICON_BIG
Definition: tnclass.cpp:51

Referenced by _tWinMain().