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.

57 lines
1.2 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: DisconnectedNICDialog.cpp
  4. //
  5. // Synopsis: Defines the DisconnectedNICDialog class
  6. // which presents the user with options
  7. // to cancel or continue when disconnected
  8. // NICs are detected
  9. //
  10. // History: 09/27/2001 JeffJon Created
  11. #include "pch.h"
  12. #include "resource.h"
  13. #include "DisconnectedNICDialog.h"
  14. DWORD disconnectedNICDialogHelpMap[] =
  15. {
  16. 0, 0
  17. };
  18. DisconnectedNICDialog::DisconnectedNICDialog()
  19. : Dialog(IDD_DISCONNECTED_NIC_DIALOG, disconnectedNICDialogHelpMap)
  20. {
  21. LOG_CTOR(DisconnectedNICDialog);
  22. }
  23. void
  24. DisconnectedNICDialog::OnInit()
  25. {
  26. LOG_FUNCTION(DisconnectedNICDialog::OnInit);
  27. Win::SetDlgItemText(
  28. hwnd,
  29. IDC_CAPTION_STATIC,
  30. String::load(IDS_DISCONNECT_NIC_STATIC_TEXT));
  31. }
  32. bool
  33. DisconnectedNICDialog::OnCommand(
  34. HWND /*windowFrom*/,
  35. unsigned controlIdFrom,
  36. unsigned code)
  37. {
  38. // LOG_FUNCTION(DisconnectedNICDialog::OnCommand);
  39. bool result = false;
  40. if (BN_CLICKED == code)
  41. {
  42. Win::EndDialog(hwnd, controlIdFrom);
  43. result = true;
  44. }
  45. return result;
  46. }