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.

294 lines
13 KiB

  1. /****************************************************************************************************
  2. * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
  3. * *
  4. * NON LOCALISABLE RESOURCES ONLY - NON LOCALISABLE RESOURCES ONLY - NON LOCALISABLE RESOURCES ONLY *
  5. * *
  6. * This file must ONLY contain resources that DO NOT need LOCALISATION. Any localised resources *
  7. * should go into shdoclc.rc. Abuse of this rule will be on pain of death. *
  8. * *
  9. * 06/11/98 - gilesv *
  10. * *
  11. * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
  12. ****************************************************************************************************/
  13. #include <windows.h>
  14. #include <shlobj.h> // for FCIDM_SHVIEWFIRST
  15. #include <mshtmcid.h>
  16. #include "urlmon.h"
  17. #include <shdocvw.h>
  18. #include "resource.h"
  19. #include <platform.h>
  20. REGINST REGINST "selfreg_shdocvw.inf"
  21. IDC_OFFLINE_HAND CURSOR "handoffl.cur"
  22. // This needs to be resolved... how do we get the system to
  23. // load the custom dialog box template from our resource dll?
  24. #ifndef UNIX
  25. IDD_ADDTOSAVE_DIALOG DIALOG DISCARDABLE 0, 0, 250, 20
  26. STYLE WS_CHILD | WS_VISIBLE | DS_3DLOOK | DS_CONTROL | WS_CLIPSIBLINGS
  27. FONT 8, "MS Shell Dlg"
  28. BEGIN
  29. LTEXT "&Encoding:"IDC_STATIC, 5, 2, 50, 10, NOT WS_GROUP
  30. COMBOBOX IDC_SAVE_CHARSET,54,0,156,70,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP | CBS_SORT
  31. CONTROL "",-1,WC_NATIVEFONTCTL,NFS_LISTCOMBO,0,0,0,0
  32. END
  33. IDD_ADDTOSAVE_NT5_DIALOG DIALOG DISCARDABLE 0, 0, 300, 20
  34. STYLE WS_CHILD | WS_VISIBLE | DS_3DLOOK | DS_CONTROL | WS_CLIPSIBLINGS
  35. FONT 8, "MS Shell Dlg"
  36. BEGIN
  37. LTEXT "&Encoding:"IDC_STATIC, 67, 2, 50, 10, NOT WS_GROUP
  38. COMBOBOX IDC_SAVE_CHARSET,130,0,164,70,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP | CBS_SORT
  39. CONTROL "",-1,WC_NATIVEFONTCTL,NFS_LISTCOMBO,0,0,0,0
  40. END
  41. #else
  42. IDD_ADDTOSAVE_DIALOG DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 212, 210
  43. CAPTION "Open"
  44. STYLE WS_CAPTION | WS_SYSMENU | WS_POPUP | DS_MODALFRAME
  45. FONT 8, "MS Sans Serif"
  46. BEGIN
  47. LTEXT "File &Name",stc3,8,145,76,9
  48. EDITTEXT edt1,8,157,192,12,ES_AUTOHSCROLL | ES_OEMCONVERT
  49. DEFPUSHBUTTON "OK",IDOK,44,200,50,14,WS_GROUP
  50. PUSHBUTTON "Cancel",IDCANCEL,116,200,50,14,WS_GROUP
  51. LTEXT "Fil&ter",stc2,8,5,90,9
  52. COMBOBOX cmb1,8,16,193,36,CBS_DROPDOWNLIST | CBS_AUTOHSCROLL |
  53. WS_BORDER | WS_VSCROLL | WS_TABSTOP
  54. LTEXT "&Directories",-1,8,34,92,9
  55. LISTBOX lst2,8,48,92,96,LBS_SORT | LBS_OWNERDRAWFIXED |
  56. LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_VSCROLL |
  57. WS_HSCROLL | WS_TABSTOP
  58. LTEXT "&Files", stc4, 112, 34, 50, 9
  59. LISTBOX lst1,112,48,90,96,LBS_SORT | LBS_OWNERDRAWFIXED |
  60. LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_VSCROLL |
  61. WS_HSCROLL | WS_TABSTOP
  62. LTEXT "&Encoding:"IDC_STATIC, 8, 170, 90, 9, NOT WS_GROUP
  63. COMBOBOX IDC_SAVE_CHARSET,8,180,193,70,CBS_DROPDOWNLIST | WS_VSCROLL
  64. | WS_TABSTOP | CBS_SORT
  65. END
  66. #endif /* UNIX */
  67. //--------------------------------------------------------------
  68. // I C O N S
  69. //
  70. // Warning! Do not change the order of icons if they shipped in the
  71. // previous version of shdocvw.
  72. //--------------------------------------------------------------
  73. IDI_HOMEPAGE ICON "rc_home.ico" // 0
  74. IDI_101 ICON "junk.ico" // 1 -- NOTE: used to be IDI_FRAME "rc_frame.ico", which moved to shdoclc. If someone referenced by index, we need to duplicate the icon here again.
  75. IDI_RUNDLG ICON "fileopen.ico" // 2
  76. IDI_SSL ICON "rc_sec.ico" // 3
  77. IDI_104 ICON "junk.ico" // 4 -- NOTE: used to be IDI_FAVORITE "..\shell32\fave.ico", which moved to shdoclc. If someone referenced by index, we need to duplicate the icon here again.
  78. IDI_OFFLINE ICON "..\shell32\drivedsc.ico" // 5
  79. IDI_106 ICON "junk.ico" // 6
  80. IDI_107 ICON "junk.ico" // 7
  81. IDI_108 ICON "junk.ico" // 8
  82. IDI_109 ICON "junk.ico" // 9
  83. IDI_STATE_NORMAL ICON "st_norm.ico" // 10
  84. IDI_STATE_FINDINGRESOURCE ICON "st_find.ico" // 11
  85. IDI_STATE_SENDINGREQUEST ICON "st_sreq.ico" // 12
  86. IDI_STATE_DOWNLOADINGDATA ICON "st_recv.ico" // 13
  87. 114 ICON "junk.ico" // IE didn't ship one at 114, why do we need it??
  88. IDI_115 ICON "junk.ico" // 15
  89. IDI_PRINTER ICON "..\shell32\printer.ico" // 16
  90. IDI_117 ICON "junk.ico" // 17
  91. IDI_CHANNELSAPP ICON "chanapp.ico" // 18 -- THIS ONE IS REFERENCED BY INDEX IN IE40 LINKS
  92. //IDI_154 ICON ""
  93. //IDI_200 ICON ""
  94. //IDI_201 ICON ""
  95. //IDI_202 ICON ""
  96. //IDI_203 ICON ""
  97. ICO_TREEUP ICON "treeup.ico"
  98. //IDI_205 ICON "gleam.ico"
  99. #ifndef POSTPOSTSPLIT
  100. IDI_NEW_FOLDER ICON "newfld.ico"
  101. #endif
  102. //IDI_207 ICON ""
  103. //IDI_208 ICON ""
  104. //IDI_209 ICON ""
  105. // OPS icons
  106. IDI_LOCK ICON "lock.ico"
  107. IDI_USAGE_ICON ICON "usage_ic.ico"
  108. // WARNING / POTENTIAL BUG:
  109. // the following 10 icons are DIFFERENT
  110. // from those shipped in IE4
  111. IDI_REMOTEFLD ICON "hcview.ico"
  112. IDI_HISTWEEK ICON "histweek.ico"
  113. IDI_HISTOPEN ICON "histopen.ico"
  114. IDI_HISTFOLDER ICON "histfold.ico"
  115. IDI_HISTURL ICON "histurl.ico"
  116. // END WARNING / POTENTIAL BUG
  117. IDB_MEDIATOOLBAR BITMAP "mediaimg.bmp"
  118. IDB_CLASSIC_IETOOLBAR BITMAP "tbdef.bmp"
  119. IDB_CLASSIC_IETOOLBARHOT BITMAP "tbhot.bmp"
  120. IDB_CLASSIC_IETOOLBAR16 BITMAP "tbdef16.bmp"
  121. IDB_CLASSIC_IETOOLBARHOT16 BITMAP "tbhot16.bmp"
  122. IDB_CLASSIC_IETOOLBARHICOLOR BITMAP "tbdefhi.bmp"
  123. IDB_CLASSIC_IETOOLBARHOTHICOLOR BITMAP "tbhothi.bmp"
  124. IDI_PINNED ICON "pinned.ico"
  125. IDI_FORTEZZA ICON "fortezza.ico"
  126. IDI_STATE_SCRIPTERROR ICON "st_scer.ico"
  127. IDI_PRIVACY_IMPACT ICON "privbad.ico"
  128. IDI_PRIVACY_QUESTION ICON "privques.ico"
  129. IDI_PRIVACY_WARN ICON "privwarn.ico"
  130. IDI_PRIVACY_BLANK ICON "privblank.ico"
  131. 1 TYPELIB "exdisp.tlb"
  132. //--------------------------------------------------------------
  133. // B I T M A P S (and other images types)
  134. //--------------------------------------------------------------
  135. IDB_FOLDER BITMAP "folder.bmp"
  136. IDB_FOLDERVIEW BITMAP "fldview.bmp"
  137. IDB_SPLASH_IEXPLORER BITMAP "splash16.bmp"
  138. IDB_SPLASH_IEXPLORER_HI BITMAP "splash.bmp"
  139. IDB_HISTORYANDFAVBANDSDEF BITMAP "tbbandsdef.bmp"
  140. IDB_HISTORYANDFAVBANDSHOT BITMAP "tbbandshot.bmp"
  141. IDA_DOWNLOAD AVI download.avi
  142. IDA_AUTOSUGGEST AVI iforms.avi
  143. IDR_PRINT_PREVIEW BITMAP "prt_as.bmp"
  144. IDR_PRINT_PREVIEWONEDOC BITMAP "prt_sel.bmp"
  145. IDR_PRINT_PREVIEWALLDOCS BITMAP "prt_all.bmp"
  146. IDR_PRINT_PREVIEWDISABLED BITMAP "prt_gray.bmp"
  147. IDB_MYPICS_TOOLBAR BITMAP "mypics.bmp"
  148. IDB_MYPICS_TOOLBARG BITMAP "mypicsbw.bmp"
  149. IDB_MYPICS_TOOLBARW BITMAP "mypicsw.bmp"
  150. IDB_MYPICS_TOOLBARGW BITMAP "mypicsbww.bmp"
  151. IDB_AIR_EXPAND BITMAP "air_expand1.bmp"
  152. IDB_AIR_SHRINK BITMAP "air_shrink1.bmp"
  153. #ifdef UNIX
  154. /////////////////////////////////////////////////////////////////////////////
  155. //
  156. // Dialog
  157. //
  158. IDD_ALPHAWRNDLG DIALOG DISCARDABLE 0, 0, 226, 147
  159. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  160. CAPTION "Welcome to Internet Explorer 5.0"
  161. FONT 8, "MS Sans Serif"
  162. BEGIN
  163. DEFPUSHBUTTON "OK",IDOK,88,121,50,14
  164. // CONTROL "In the future do not show this message",
  165. // IDC_NOFUTUREDISPLAY,"Button",BS_AUTOCHECKBOX |
  166. // WS_TABSTOP,41,98,143,10
  167. LTEXT "This beta release of Internet Explorer represents a work in progress. Some of the features in the product may be incomplete at this time, and are subject to change in the final version. "
  168. IDC_STATIC,14,29,198,31
  169. LTEXT "Please see the readme that accompanies this release for more detailed information.",
  170. IDC_STATIC,14,63,198,31
  171. LTEXT "Welcome to the Beta Release of Internet Explorer 5",
  172. IDC_STATIC,15,10,194,8
  173. END
  174. #endif /* UNIX */
  175. //
  176. // these are strings that are used in the registry.
  177. // UI strings should never be registered, because the registry
  178. // doesn't handle cross codepage strings, and it's static (no plugUI).
  179. // The differences between the plugUI version of the protocol strings
  180. // and the registered (install language) versions were causing
  181. // IE to erroneously present the "make IE your default browser" dialog
  182. // when the UI language had been switched via plugUI.
  183. // the UI strings are ones which, as far as I can tell, we never use
  184. // so probably someone else (like shell32) is loading them out of the
  185. // registry... unless we could teach whoever loads them about
  186. // using shlwapi's SHLoadRegUIString(), there's no point is wasting
  187. // space in the satellite resource dlls... hence they're back here.
  188. //
  189. STRINGTABLE DISCARDABLE
  190. BEGIN
  191. IDS_REG_HTTPNAME "URL:HyperText Transfer Protocol"
  192. IDS_REG_HTTPSNAME "URL:HyperText Transfer Protocol with Privacy"
  193. IDS_REG_FTPNAME "URL:File Transfer Protocol"
  194. IDS_REG_GOPHERNAME "URL:Gopher Protocol"
  195. IDS_REG_TELNETNAME "URL:Telnet Protocol"
  196. IDS_REG_RLOGINNAME "URL:RLogin Protocol"
  197. IDS_REG_TN3270NAME "URL:TN3270 Protocol"
  198. IDS_REG_MAILTONAME "URL:MailTo Protocol"
  199. IDS_REG_NEWSNAME "URL:News Protocol"
  200. IDS_REG_FILENAME "URL:File Protocol"
  201. IDS_REG_INTSHNAME "Internet Shortcut"
  202. IDS_REG_THEINTERNET "The Internet"
  203. IDS_REG_URLEXECHOOK "URL Exec Hook"
  204. IDS_REG_OPEN "&Open"
  205. IDS_REG_OPENSAME "Open in S&ame Window"
  206. IDS_REG_SCFTYPENAME "Windows Explorer Command"
  207. END
  208. #ifdef MLUI_SUPPORT
  209. #include "shdocvw.rcv"
  210. #else
  211. #include "shdoclc.rc"
  212. #endif
  213. #ifdef UNIX
  214. IDI_MONOFRAME ICON "monofrm.ico"
  215. /////////////////////////////////////////////////////////////////////////////
  216. //
  217. // Dialog for EULA acceptance from user.
  218. //
  219. IDD_EULA DIALOG DISCARDABLE 50, 50, 250, 180
  220. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
  221. CAPTION "Internet Explorer"
  222. FONT 8, "MS Shell Dlg"
  223. BEGIN
  224. EDITTEXT IDC_EULA_TEXT,30,41,200,81,ES_MULTILINE |
  225. ES_AUTOVSCROLL | ES_READONLY | WS_VSCROLL
  226. RADIOBUTTON "I &accept the agreement",IDC_ACCEPT,30,127,87,10,
  227. WS_GROUP | WS_TABSTOP
  228. RADIOBUTTON "I &do not accept the agreement",IDC_DONT_ACCEPT,30,142,
  229. 110,10,WS_TABSTOP
  230. LTEXT "Press the PAGE DOWN key to see more text...",IDC_MORE,
  231. 150,127,78,24
  232. LTEXT "License Agreement",IDC_BIGFONT,30,10,210,20
  233. LTEXT "Please read the following license agreement. You must accept the agreement to continue using Internet Explorer.",
  234. IDC_STATIC,30,22,196,16
  235. PUSHBUTTON "Dis&miss",IDOK,100,165,50,14
  236. END
  237. STRINGTABLE DISCARDABLE
  238. BEGIN
  239. IDS_NS_BOOKMARKS_DIR "/Imported Bookmarks"
  240. IDS_NEWS_SCRIPT_ERROR "Unable to execute News command. Please verify News settings in 'Programs' tab under 'Internet Options'. "
  241. IDS_NEWS_SCRIPT_ERROR_TITLE "News"
  242. END
  243. DLG_RUNMOTIF DIALOG DISCARDABLE 0, 0, 227, 85
  244. STYLE DS_MODALFRAME | DS_NOIDLEMSG | DS_3DLOOK | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
  245. CAPTION "Open"
  246. FONT 8, "MS Shell Dlg"
  247. BEGIN
  248. ICON IDI_RUNDLG,IDD_ICON,7,11,18,20
  249. LTEXT "Type the Internet address of a document, and Internet Explorer will open it for you.", IDD_PROMPT,36,11,182,18
  250. LTEXT "&Open:",IDD_RUNDLGOPENPROMPT,7,39,24,10
  251. CONTROL "",IDD_COMMAND, WC_COMBOBOXEX, CBS_DROPDOWN | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL| WS_TABSTOP, 36,37,183,100
  252. DEFPUSHBUTTON "OK",IDOK,19,63,50,14
  253. PUSHBUTTON "Cancel",IDCANCEL,89,63,50,14
  254. PUSHBUTTON "&Browse...",IDD_BROWSE,159,63,50,14
  255. END
  256. #endif /* UNIX */