Source code of Windows XP (NT5)
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.

96 lines
2.3 KiB

  1. //------------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows Shell
  4. // Copyright (C) Microsoft Corporation, 2000
  5. //
  6. // File: regresed.c
  7. //
  8. // Contents: Implementation of REG_RESOURCE_LIST for regedit
  9. //
  10. // Classes: none
  11. //
  12. //------------------------------------------------------------------------------
  13. #include "pch.h"
  14. #include "regresid.h"
  15. #include "regresed.h"
  16. #include "clb.h"
  17. //------------------------------------------------------------------------------
  18. //
  19. // EditResourceListDlgProc
  20. //
  21. // DESCRIPTION:
  22. //
  23. // PARAMETERS:
  24. //------------------------------------------------------------------------------
  25. INT_PTR CALLBACK EditResourceListDlgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)
  26. {
  27. LPEDITVALUEPARAM lpEditValueParam;
  28. switch (Message)
  29. {
  30. HANDLE_MSG(hWnd, WM_INITDIALOG, EditResourceList_OnInitDialog);
  31. case WM_COMMAND:
  32. {
  33. switch (GET_WM_COMMAND_ID(wParam, lParam))
  34. {
  35. case IDOK:
  36. case IDCANCEL:
  37. EndDialog(hWnd, GET_WM_COMMAND_ID(wParam, lParam));
  38. break;
  39. }
  40. }
  41. break;
  42. case WM_HELP:
  43. break;
  44. case WM_CONTEXTMENU:
  45. break;
  46. default:
  47. return FALSE;
  48. }
  49. return TRUE;
  50. }
  51. //------------------------------------------------------------------------------
  52. //
  53. // EditResourceList_OnInitDialog
  54. //
  55. // DESCRIPTION:
  56. //
  57. // PARAMETERS:
  58. //------------------------------------------------------------------------------
  59. BOOL EditResourceList_OnInitDialog(HWND hWnd, HWND hFocusWnd, LPARAM lParam)
  60. {
  61. ClbSetColumnWidths(hWnd, IDC_LIST_RESOURCE_LISTS, 10);
  62. /*
  63. LPEDITVALUEPARAM lpEditValueParam;
  64. // Change maximum number of characters of the edit control, to its
  65. // maximum limit (from 3000 characters to 4G characters).
  66. SendDlgItemMessage( hWnd, IDC_VALUEDATA, EM_LIMITTEXT, 0, 0L );
  67. SetWindowLongPtr(hWnd, DWLP_USER, lParam);
  68. lpEditValueParam = (LPEDITVALUEPARAM) lParam;
  69. SetDlgItemText(hWnd, IDC_VALUENAME, lpEditValueParam-> pValueName);
  70. SetDlgItemText(hWnd, IDC_VALUEDATA, (PTSTR)lpEditValueParam-> pValueData);
  71. */
  72. return TRUE;
  73. UNREFERENCED_PARAMETER(hFocusWnd);
  74. }