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.

154 lines
4.4 KiB

  1. //===========================================================================
  2. // dmtfail.cpp
  3. //
  4. // Failure details dialog processing
  5. //
  6. // Functions:
  7. // dmtfailDlgProc
  8. // dmtfailOnInitDialog
  9. // dmtfailOnCommand
  10. //
  11. // History:
  12. // 10/11/1999 - davidkl - created
  13. //===========================================================================
  14. #include "dimaptst.h"
  15. #include "dmtfail.h"
  16. //---------------------------------------------------------------------------
  17. //===========================================================================
  18. // dmtfailDlgProc
  19. //
  20. // Dialog procedure for Failure Details box
  21. //
  22. // Parameters: (see SDK help for parameter details)
  23. // HWND hwnd
  24. // UINT uMsg
  25. // WPARAM wparam
  26. // LPARAM lparam
  27. //
  28. // Returns: (see SDK help for return value details)
  29. // BOOL
  30. //
  31. // History:
  32. // 10/11/1999 - davidkl - created
  33. //===========================================================================
  34. /*BOOL*/INT_PTR CALLBACK dmtfailDlgProc(HWND hwnd,
  35. UINT uMsg,
  36. WPARAM wparam,
  37. LPARAM lparam)
  38. {
  39. switch(uMsg)
  40. {
  41. case WM_INITDIALOG:
  42. return dmtfailOnInitDialog(hwnd,
  43. (HWND)wparam,
  44. lparam);
  45. case WM_COMMAND:
  46. return dmtfailOnCommand(hwnd,
  47. LOWORD(wparam),
  48. (HWND)lparam,
  49. HIWORD(wparam));
  50. }
  51. return FALSE;
  52. } //*** end dmtfailDlgProc
  53. //===========================================================================
  54. // dmtfailOnInitDialog
  55. //
  56. // Handle WM_INITDIALOG processing for the failure details box
  57. //
  58. // Parameters:
  59. // HWND hwnd - handle to property page
  60. // HWND hwndFocus - handle of ctrl with focus
  61. // LPARAM lparam - user data (in this case, PROPSHEETPAGE*)
  62. //
  63. // Returns: BOOL
  64. //
  65. // History:
  66. // 10/11/1999 - davidkl - created
  67. //===========================================================================
  68. BOOL dmtfailOnInitDialog(HWND hwnd,
  69. HWND hwndFocus,
  70. LPARAM lparam)
  71. {
  72. return TRUE;
  73. } //*** end dmtfailOnInitDialog()
  74. //===========================================================================
  75. // dmtfailOnCommand
  76. //
  77. // Handle WM_COMMAND processing for the failure details box
  78. //
  79. // Parameters:
  80. // HWND hwnd - handle to property page
  81. // WORD wId - control identifier (LOWORD(wparam))
  82. // HWND hwndCtrl - handle to control ((HWND)lparam)
  83. // WORD wNotifyCode - notification code (HIWORD(wparam))
  84. //
  85. // Returns: BOOL
  86. //
  87. // History:
  88. // 10/11/1999 - davidkl - created
  89. //===========================================================================
  90. BOOL dmtfailOnCommand(HWND hwnd,
  91. WORD wId,
  92. HWND hwndCtrl,
  93. WORD wNotifyCode)
  94. {
  95. switch(wId)
  96. {
  97. case IDOK:
  98. EndDialog(hwnd, 0);
  99. break;
  100. case IDCANCEL:
  101. EndDialog(hwnd, -1);
  102. break;
  103. }
  104. // done
  105. return FALSE;
  106. } //*** dmtfailOnCommand()
  107. //===========================================================================
  108. //===========================================================================
  109. //===========================================================================
  110. //===========================================================================
  111. //===========================================================================
  112. //===========================================================================
  113. //===========================================================================
  114. //===========================================================================
  115. //===========================================================================
  116. //===========================================================================
  117. //===========================================================================
  118. //===========================================================================
  119. //===========================================================================
  120. //===========================================================================