Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. Author:
  6. Vlad Sadovsky (vlads) 10-Jan-1997
  7. Environment:
  8. User Mode - Win32
  9. Revision History:
  10. 26-Jan-1997 VladS created
  11. --*/
  12. #include <cdlg.h>
  13. extern
  14. DWORD
  15. DisplayPopup (
  16. IN DWORD dwMessageId,
  17. IN DWORD dwMessageFlags = 0
  18. );
  19. //
  20. // Debugging UI class, describing dialog to enter new value of timeout
  21. //
  22. class CSetTimeout : public CDlg
  23. {
  24. public:
  25. typedef CDlg BASECLASS;
  26. CSetTimeout(int DlgID, HWND hWnd, HINSTANCE hInst,UINT uiTimeout);
  27. ~CSetTimeout();
  28. virtual int OnCommand(UINT id,HWND hwndCtl, UINT codeNotify);
  29. virtual void OnInit();
  30. UINT GetNewTimeout(VOID) {return m_uiNewTimeOut;};
  31. BOOL IsAllChange(VOID) {return m_fAllChange;};
  32. BOOL m_fValidChange;
  33. private:
  34. UINT m_uiOrigTimeout;
  35. UINT m_uiNewTimeOut;
  36. BOOL m_fAllChange;
  37. };
  38. //
  39. // Class for displaying UI selecting from list of available applications for device event
  40. //
  41. class CLaunchSelection : public CDlg
  42. {
  43. public:
  44. typedef CDlg BASECLASS;
  45. CLaunchSelection(int DlgID, HWND hWnd, HINSTANCE hInst,ACTIVE_DEVICE *pDev,PDEVICEEVENT pEvent,STRArray &saProcessors,StiCString& strSelected);
  46. ~CLaunchSelection();
  47. virtual
  48. BOOL
  49. CALLBACK
  50. CLaunchSelection::DlgProc(
  51. HWND hDlg,
  52. UINT uMessage,
  53. WPARAM wParam,
  54. LPARAM lParam
  55. );
  56. virtual
  57. int
  58. OnCommand(
  59. UINT id,
  60. HWND hwndCtl,
  61. UINT codeNotify
  62. );
  63. virtual
  64. void
  65. OnInit();
  66. private:
  67. StiCString &m_strSelected;
  68. STRArray &m_saList;
  69. PDEVICEEVENT m_pEvent;
  70. ACTIVE_DEVICE* m_pDevice;
  71. LRESULT m_uiCurSelection;
  72. HWND m_hPreviouslyActiveWindow;
  73. };