From d4aa908ea2783a9927282aafd14e67045f8b41d3 Mon Sep 17 00:00:00 2001 From: freedom7341 Date: Wed, 27 Sep 2023 12:22:01 -0600 Subject: [PATCH] begin shutdown dialog and a few other small things, come back to this later --- progmgr/desktop2.c | 5 +++++ progmgr/dialog.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/progmgr/desktop2.c b/progmgr/desktop2.c index a81d94d..1e6eab0 100644 --- a/progmgr/desktop2.c +++ b/progmgr/desktop2.c @@ -35,5 +35,10 @@ BOOL CreateDesktopWindow2(VOID) // color the window invisible, get list of running // programs and then draw them all and capture their // system menus as context menus for each icon. + + // FUNCTIONS TODO: + // QueryRunningPrograms() + // DrawProgramIcon(DWORD dwFlags) + // return TRUE; } \ No newline at end of file diff --git a/progmgr/dialog.c b/progmgr/dialog.c index 01e8330..0c3d089 100644 --- a/progmgr/dialog.c +++ b/progmgr/dialog.c @@ -372,3 +372,32 @@ BOOL CALLBACK NewItemDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM l return TRUE; } + +/* * * *\ + ShutdownDlgProc - + Dialog procedure for powering off the computer. + RETURNS - + TRUE if message is handled, FALSE otherwise. +\* * * */ +BOOL CALLBACK ShutdownDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + HICON hIconDlg = NULL; + + switch (message) + { + + case WM_INITDIALOG: + break; + + case WM_COMMAND: + break; + + default: + // Cleanup + if (hIconDlg) + DestroyIcon(hIconDlg); + + return FALSE; + } + return TRUE; +}