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.

194 lines
6.9 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. fileopen.dlg
  5. Abstract:
  6. This module contains the resource descriptions for the Win32
  7. file open and save as common dialogs.
  8. Revision History:
  9. --*/
  10. //
  11. // Include Files.
  12. //
  13. #include <shlobj.h>
  14. //
  15. // Constant Declarations.
  16. //
  17. #define LBS_DISABLENOSCROLL 0x1000L
  18. //
  19. // New File Open and Save As Dialogs.
  20. //
  21. NEWFILEOPENV2ORD DIALOG DISCARDABLE 0, 0, 370, 237
  22. STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION |
  23. WS_SYSMENU | DS_CONTEXTHELP | WS_CLIPCHILDREN
  24. CAPTION "Open"
  25. FONT 8, "MS Shell Dlg"
  26. BEGIN
  27. LTEXT "Look &in:", stc4, 4, 7, 57, 8, SS_NOTIFY,WS_EX_RIGHT
  28. COMBOBOX cmb2, 66, 4, 174, 300,
  29. CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS |
  30. WS_VSCROLL | WS_TABSTOP
  31. LTEXT "", stc1, 248, 4, 80, 14, NOT WS_GROUP | NOT WS_VISIBLE,
  32. CONTROL "", ctl1, TOOLBARCLASSNAME, WS_TABSTOP |
  33. CCS_NODIVIDER |CCS_NOPARENTALIGN | CCS_NORESIZE | TBSTYLE_WRAPABLE |
  34. TBSTYLE_FLAT | TBSTYLE_TOOLTIPS | TBSTYLE_CUSTOMERASE,
  35. 4,22,58,208 , WS_EX_CLIENTEDGE
  36. LISTBOX lst1, 66, 22, 300, 156,
  37. LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN |
  38. WS_HSCROLL | NOT WS_VISIBLE
  39. LTEXT "File &name:", stc3, 67, 187, 58, 8, SS_NOTIFY
  40. EDITTEXT edt1, 130,184, 164, 12, WS_TABSTOP | ES_AUTOHSCROLL
  41. CONTROL "", cmb13, WC_COMBOBOXEX, WS_TABSTOP| WS_VSCROLL |
  42. CBS_DROPDOWN | CBS_AUTOHSCROLL,
  43. 130, 184, 164, 150
  44. LTEXT "Files of &type:", stc2, 67, 203, 58, 8, SS_NOTIFY
  45. COMBOBOX cmb1, 130, 201, 164, 100,
  46. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  47. AUTOCHECKBOX "Open as &read-only", chx1, 130, 217, 160, 8, WS_TABSTOP
  48. DEFPUSHBUTTON "&Open", IDOK, 316, 184, 50, 14, WS_GROUP
  49. PUSHBUTTON "Cancel", IDCANCEL, 316, 200, 50, 14, WS_GROUP
  50. PUSHBUTTON "&Help", pshHelp, 316, 218, 50, 14, WS_GROUP
  51. END
  52. NEWFILEOPENORD DIALOG DISCARDABLE 0, 0, 280, 164
  53. STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION |
  54. WS_SYSMENU | DS_CONTEXTHELP | WS_CLIPCHILDREN
  55. CAPTION "Open"
  56. FONT 8, "MS Shell Dlg"
  57. BEGIN
  58. LTEXT "Look &in:", stc4, 7, 6, 27, 8, SS_NOTIFY
  59. COMBOBOX cmb2, 36, 3, 148, 300,
  60. CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS |
  61. WS_VSCROLL | WS_TABSTOP
  62. LTEXT "", stc1, 186, 3, 88, 16, NOT WS_GROUP | NOT WS_VISIBLE
  63. LISTBOX lst1, 4, 20, 272, 85,
  64. LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN |
  65. WS_HSCROLL | NOT WS_VISIBLE
  66. LTEXT "File &name:", stc3, 5, 112, 48, 8, SS_NOTIFY
  67. EDITTEXT edt1, 54, 111, 155, 12, WS_TABSTOP | ES_AUTOHSCROLL
  68. CONTROL "", cmb13, WC_COMBOBOXEX, WS_TABSTOP| WS_VSCROLL |
  69. CBS_DROPDOWN | CBS_AUTOHSCROLL,
  70. 54, 111, 155, 150
  71. LTEXT "Files of &type:", stc2, 5, 131, 48, 8, SS_NOTIFY
  72. COMBOBOX cmb1, 54, 129, 155, 100,
  73. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  74. AUTOCHECKBOX "Open as &read-only", chx1, 54, 148, 74, 10, WS_TABSTOP
  75. DEFPUSHBUTTON "&Open", IDOK, 222, 110, 50, 14
  76. PUSHBUTTON "Cancel", IDCANCEL, 222, 128, 50, 14
  77. PUSHBUTTON "&Help", pshHelp, 222, 145, 50, 14
  78. END
  79. //
  80. // Old File Open and Save As Dialogs.
  81. //
  82. FILEOPENORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 268, 134
  83. STYLE WS_CAPTION | WS_SYSMENU | WS_POPUP | DS_MODALFRAME |
  84. DS_CONTEXTHELP | DS_3DLOOK
  85. CAPTION "Open"
  86. FONT 8, "MS Shell Dlg"
  87. BEGIN
  88. LTEXT "File &name:", stc3, 6, 6, 76, 9
  89. EDITTEXT edt1, 6, 16, 90, 12,
  90. ES_AUTOHSCROLL | WS_TABSTOP | ES_OEMCONVERT
  91. LISTBOX lst1, 6, 32, 90, 68,
  92. LBS_SORT | LBS_HASSTRINGS | LBS_NOTIFY |
  93. LBS_DISABLENOSCROLL | WS_VSCROLL |
  94. WS_TABSTOP | LBS_OWNERDRAWFIXED
  95. LTEXT "&Folders:", -1, 110, 6, 96, 9
  96. LTEXT "", stc1, 110, 16, 96, 9, SS_NOPREFIX
  97. LISTBOX lst2, 110, 32, 96, 68,
  98. LBS_SORT | LBS_HASSTRINGS | LBS_NOTIFY |
  99. LBS_DISABLENOSCROLL | WS_VSCROLL |
  100. WS_TABSTOP | LBS_OWNERDRAWFIXED
  101. LTEXT "List files of &type:", stc2, 6, 104, 90, 9
  102. COMBOBOX cmb1, 6, 114, 90, 96,
  103. CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
  104. LTEXT "Dri&ves:", stc4, 110, 104, 96, 9
  105. COMBOBOX cmb2, 110, 114, 96, 68,
  106. CBS_SORT | CBS_HASSTRINGS | CBS_OWNERDRAWFIXED |
  107. CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
  108. DEFPUSHBUTTON "OK", IDOK, 212, 6, 50, 14, WS_GROUP
  109. PUSHBUTTON "Cancel", IDCANCEL, 212, 24, 50, 14, WS_GROUP
  110. PUSHBUTTON "&Help", pshHelp, 212, 46, 50, 14, WS_GROUP
  111. AUTOCHECKBOX "&Read only", chx1, 212, 68, 50, 12, WS_TABSTOP | WS_GROUP
  112. END
  113. MULTIFILEOPENORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 268, 134
  114. STYLE WS_CAPTION | WS_SYSMENU | WS_POPUP | DS_MODALFRAME |
  115. DS_CONTEXTHELP | DS_3DLOOK
  116. CAPTION "Open"
  117. FONT 8, "MS Shell Dlg"
  118. BEGIN
  119. LTEXT "File &name:", stc3, 6, 6, 76, 9
  120. EDITTEXT edt1, 6, 16, 90, 12,
  121. ES_AUTOHSCROLL | WS_TABSTOP | ES_OEMCONVERT
  122. LISTBOX lst1, 6, 32, 90, 68,
  123. LBS_SORT | LBS_NOTIFY | LBS_DISABLENOSCROLL | WS_VSCROLL |
  124. WS_TABSTOP | LBS_EXTENDEDSEL | LBS_HASSTRINGS |
  125. LBS_OWNERDRAWFIXED
  126. LTEXT "&Folders:", -1, 110, 6, 96, 9
  127. LTEXT "", stc1, 110, 16, 96, 9, SS_NOPREFIX
  128. LISTBOX lst2, 110, 32, 96, 68,
  129. LBS_SORT | LBS_HASSTRINGS | LBS_NOTIFY |
  130. LBS_DISABLENOSCROLL | WS_VSCROLL |
  131. WS_TABSTOP | LBS_OWNERDRAWFIXED
  132. LTEXT "List files of &type:", stc2, 6, 104, 90, 9
  133. COMBOBOX cmb1, 6, 114, 90, 96,
  134. CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
  135. LTEXT "Dri&ves:", stc4, 110, 104, 96, 9
  136. COMBOBOX cmb2, 110, 114, 96, 68,
  137. CBS_SORT | CBS_HASSTRINGS | CBS_OWNERDRAWFIXED |
  138. CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
  139. DEFPUSHBUTTON "OK", IDOK, 212, 6, 50, 14, WS_GROUP
  140. PUSHBUTTON "Cancel", IDCANCEL, 212, 24, 50, 14, WS_GROUP
  141. PUSHBUTTON "&Help", pshHelp, 212, 46, 50, 14, WS_GROUP
  142. AUTOCHECKBOX "&Read only", chx1, 212, 68, 50, 12, WS_TABSTOP | WS_GROUP
  143. END