begin shutdown dialog and a few other small things, come back to this later

This commit is contained in:
freedom7341
2023-09-27 12:22:01 -06:00
parent 4dfb5d8554
commit d4aa908ea2
2 changed files with 34 additions and 0 deletions

View File

@@ -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;
}