ReactOS 0.4.15-dev-7654-g6bc40d3
optnmenu.c File Reference
#include "precomp.h"
Include dependency graph for optnmenu.c:

Go to the source code of this file.

Functions

void TaskManager_OnOptionsAlwaysOnTop (void)
 
void TaskManager_OnOptionsMinimizeOnUse (void)
 
void TaskManager_OnOptionsHideWhenMinimized (void)
 
void TaskManager_OnOptionsShow16BitTasks (void)
 

Function Documentation

◆ TaskManager_OnOptionsAlwaysOnTop()

void TaskManager_OnOptionsAlwaysOnTop ( void  )

Definition at line 10 of file optnmenu.c.

11{
12 HMENU hMenu;
13 HMENU hOptionsMenu;
14
15 hMenu = GetMenu(hMainWnd);
16 hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
17
18 /*
19 * Check or uncheck the always on top menu item
20 * and update main window.
21 */
23 {
27 }
28 else
29 {
33 }
34}
#define ID_OPTIONS_ALWAYSONTOP
Definition: resource.h:143
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
HWND hMainWnd
Definition: magnifier.c:32
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
#define OPTIONS_MENU_INDEX
Definition: optnmenu.h:10
#define WS_EX_TOPMOST
Definition: pedump.c:647
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:37
#define MF_BYCOMMAND
Definition: winuser.h:202
#define GetWindowLongPtrW
Definition: winuser.h:4828
#define HWND_TOPMOST
Definition: winuser.h:1207
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOMOVE
Definition: winuser.h:1243
#define MF_CHECKED
Definition: winuser.h:132
#define SWP_NOSIZE
Definition: winuser.h:1244
#define MF_UNCHECKED
Definition: winuser.h:204
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
#define HWND_NOTOPMOST
Definition: winuser.h:1205
HMENU WINAPI GetMenu(_In_ HWND)
#define GWL_EXSTYLE
Definition: winuser.h:850

Referenced by TaskManagerWndProc().

◆ TaskManager_OnOptionsHideWhenMinimized()

void TaskManager_OnOptionsHideWhenMinimized ( void  )

Definition at line 59 of file optnmenu.c.

60{
61 HMENU hMenu;
62 HMENU hOptionsMenu;
63
64 hMenu = GetMenu(hMainWnd);
65 hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
66
67 /*
68 * Check or uncheck the hide when minimized menu item.
69 */
71 {
74 }
75 else
76 {
79 }
80}
#define ID_OPTIONS_HIDEWHENMINIMIZED
Definition: resource.h:145
BOOL HideWhenMinimized
Definition: taskmgr.h:36
UINT WINAPI GetMenuState(_In_ HMENU, _In_ UINT, _In_ UINT)

Referenced by TaskManagerWndProc().

◆ TaskManager_OnOptionsMinimizeOnUse()

void TaskManager_OnOptionsMinimizeOnUse ( void  )

Definition at line 36 of file optnmenu.c.

37{
38 HMENU hMenu;
39 HMENU hOptionsMenu;
40
41 hMenu = GetMenu(hMainWnd);
42 hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
43
44 /*
45 * Check or uncheck the minimize on use menu item.
46 */
48 {
51 }
52 else
53 {
56 }
57}
#define ID_OPTIONS_MINIMIZEONUSE
Definition: resource.h:144

Referenced by TaskManagerWndProc().

◆ TaskManager_OnOptionsShow16BitTasks()

void TaskManager_OnOptionsShow16BitTasks ( void  )

Definition at line 82 of file optnmenu.c.

83{
84 HMENU hMenu;
85 HMENU hOptionsMenu;
86
87 hMenu = GetMenu(hMainWnd);
88 hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
89
90 /*
91 * FIXME: Currently this is useless because the
92 * current implementation doesn't list the 16-bit
93 * processes. I believe that would require querying
94 * each ntvdm.exe process for it's children.
95 */
96
97 /*
98 * Check or uncheck the show 16-bit tasks menu item
99 */
101 {
104 }
105 else
106 {
109 }
110
111 /*
112 * Refresh the list of processes.
113 */
115}
#define ID_OPTIONS_SHOW16BITTASKS
Definition: resource.h:163
void RefreshProcessPage(void)
Definition: procpage.c:448

Referenced by TaskManagerWndProc().