begin shutdown dialog and a few other small things, come back to this later
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user