ReactOS 0.4.15-dev-6056-gb29b268
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 31 of file optnmenu.c.

32{
33 HMENU hMenu;
34 HMENU hOptionsMenu;
35
36 hMenu = GetMenu(hMainWnd);
37 hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
38
39 /*
40 * Check or uncheck the always on top menu item
41 * and update main window.
42 */
44 {
48 }
49 else
50 {
54 }
55}
#define ID_OPTIONS_ALWAYSONTOP
Definition: resource.h:138
#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:60
#define OPTIONS_MENU_INDEX
Definition: optnmenu.h:29
#define WS_EX_TOPMOST
Definition: pedump.c:647
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:52
#define MF_BYCOMMAND
Definition: winuser.h:202
#define GetWindowLongPtrW
Definition: winuser.h:4819
#define HWND_TOPMOST
Definition: winuser.h:1198
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOMOVE
Definition: winuser.h:1234
#define MF_CHECKED
Definition: winuser.h:132
#define SWP_NOSIZE
Definition: winuser.h:1235
#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:1196
HMENU WINAPI GetMenu(_In_ HWND)
#define GWL_EXSTYLE
Definition: winuser.h:845

Referenced by TaskManagerWndProc().

◆ TaskManager_OnOptionsHideWhenMinimized()

void TaskManager_OnOptionsHideWhenMinimized ( void  )

Definition at line 80 of file optnmenu.c.

81{
82 HMENU hMenu;
83 HMENU hOptionsMenu;
84
85 hMenu = GetMenu(hMainWnd);
86 hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
87
88 /*
89 * Check or uncheck the hide when minimized menu item.
90 */
92 {
95 }
96 else
97 {
100 }
101}
#define ID_OPTIONS_HIDEWHENMINIMIZED
Definition: resource.h:140
BOOL HideWhenMinimized
Definition: taskmgr.h:68
UINT WINAPI GetMenuState(_In_ HMENU, _In_ UINT, _In_ UINT)

Referenced by TaskManagerWndProc().

◆ TaskManager_OnOptionsMinimizeOnUse()

void TaskManager_OnOptionsMinimizeOnUse ( void  )

Definition at line 57 of file optnmenu.c.

58{
59 HMENU hMenu;
60 HMENU hOptionsMenu;
61
62 hMenu = GetMenu(hMainWnd);
63 hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
64
65 /*
66 * Check or uncheck the minimize on use menu item.
67 */
69 {
72 }
73 else
74 {
77 }
78}
#define ID_OPTIONS_MINIMIZEONUSE
Definition: resource.h:139

Referenced by TaskManagerWndProc().

◆ TaskManager_OnOptionsShow16BitTasks()

void TaskManager_OnOptionsShow16BitTasks ( void  )

Definition at line 103 of file optnmenu.c.

104{
105 HMENU hMenu;
106 HMENU hOptionsMenu;
107
108 hMenu = GetMenu(hMainWnd);
109 hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
110
111 /*
112 * FIXME: Currently this is useless because the
113 * current implementation doesn't list the 16-bit
114 * processes. I believe that would require querying
115 * each ntvdm.exe process for it's children.
116 */
117
118 /*
119 * Check or uncheck the show 16-bit tasks menu item
120 */
122 {
125 }
126 else
127 {
130 }
131
132 /*
133 * Refresh the list of processes.
134 */
136}
#define ID_OPTIONS_SHOW16BITTASKS
Definition: resource.h:158
void RefreshProcessPage(void)
Definition: procpage.c:463

Referenced by TaskManagerWndProc().