|
|
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1996 - 2001. // // File: srch.rc // //--------------------------------------------------------------------------
#include "windows.h" #include "ntverp.h" #include "srchmenu.hxx" #include "srchdlg.hxx"
#define VER_FILETYPE VFT_APP #define VER_FILESUBTYPE VFT2_UNKNOWN #define VER_FILEDESCRIPTION_STR "Indexing Service search utility" #define VER_INTERNALNAME_STR "srch.exe" #define VER_ORIGINALFILENAME_STR "srch.exe" #include "common.ver"
SearchIcon ICON srch.ico SearchWindowIcon ICON srchwnd.ico BrowseWindowIcon ICON brwswnd.ico
// toolbar button bitmaps. Normal is used to generate disabled buttons
ToolbarBmpNormal BITMAP "tbnormal.bmp" ToolbarBmpHilite BITMAP "tbhilite.bmp"
SrchMenu MENU BEGIN POPUP "&File" BEGIN MENUITEM "&Open...\tCtrl+O", IDM_OPEN MENUITEM "&Close", IDM_CLOSE MENUITEM SEPARATOR MENUITEM "Catalog S&tatus...\tCtrl+T", IDM_CATALOG_STATUS MENUITEM "&Master Merge Catalog", IDM_MASTER_MERGE MENUITEM SEPARATOR MENUITEM "E&xit", IDM_EXIT END POPUP "&Edit" BEGIN MENUITEM "&Undo\tAlt+BkSp", IDM_EDITUNDO MENUITEM SEPARATOR MENUITEM "Cu&t\tCtrl+X", IDM_EDITCUT MENUITEM "&Copy\tCtrl+C", IDM_EDITCOPY MENUITEM "&Paste\tCtrl+V", IDM_EDITPASTE MENUITEM "Cl&ear\tDel", IDM_EDITCLEAR MENUITEM SEPARATOR MENUITEM "Copy &All Hits", IDM_EDITCOPYALL END POPUP "&Search" BEGIN MENUITEM "&Search\tEnter", IDM_SEARCH MENUITEM "Search for C++ &Class Definition\tCtrl+A", IDM_SEARCHCLASSDEF MENUITEM "Search for C++ &Function Definition\tCtrl+F", IDM_SEARCHFUNCDEF MENUITEM SEPARATOR MENUITEM "&New Search\tESC", IDM_NEWSEARCH MENUITEM SEPARATOR MENUITEM "C&atalog Selection...\tCtrl+D", IDM_SCOPE_AND_DEPTH MENUITEM SEPARATOR MENUITEM "&Browse\tCtrl+B", IDM_BROWSE MENUITEM SEPARATOR MENUITEM "&Previous Hit in File\tF7", IDM_PREVIOUS_HIT MENUITEM "Ne&xt Hit in File\tF8", IDM_NEXT_HIT END POPUP "&Options" BEGIN MENUITEM "&Font...", IDM_FONT MENUITEM SEPARATOR MENUITEM "&Toolbar", IDM_ICON_BAR MENUITEM "&Status Bar", IDM_STATUS_BAR MENUITEM SEPARATOR MENUITEM "&Always Use Index" IDM_FORCE_USE_CI MENUITEM SEPARATOR POPUP "&Locale" BEGIN MENUITEM "&Neutral", IDM_LOCALE_NEUTRAL MENUITEM "&Chinese (Taiwan)", IDM_LOCALE_CHINESE_TRADITIONAL MENUITEM "Chinese (&PR China)", IDM_LOCALE_CHINESE_SIMPLIFIED MENUITEM "Chinese (&Hong Kong SAR)", IDM_LOCALE_CHINESE_HONGKONG MENUITEM "Chinese (Singap&ore)", IDM_LOCALE_CHINESE_SINGAPORE MENUITEM "Chinese (&Macau SAR)", IDM_LOCALE_CHINESE_MACAU MENUITEM "&Dutch", IDM_LOCALE_DUTCH_DUTCH MENUITEM "Eng&lish (Canadian)", IDM_LOCALE_ENGLISH_CAN MENUITEM "&English (US)", IDM_LOCALE_ENGLISH_US MENUITEM "English (U&K)", IDM_LOCALE_ENGLISH_UK MENUITEM "Finnish", IDM_LOCALE_FINNISH_DEFAULT MENUITEM "Farsi", IDM_LOCALE_FARSI_DEFAULT MENUITEM "&French", IDM_LOCALE_FRENCH_FRENCH MENUITEM "French (C&anadian)", IDM_LOCALE_FRENCH_CANADIAN MENUITEM "&German", IDM_LOCALE_GERMAN_GERMAN MENUITEM "Greek", IDM_LOCALE_GREEK_DEFAULT MENUITEM "Hebrew", IDM_LOCALE_HEBREW_DEFAULT MENUITEM "Hindi", IDM_LOCALE_HINDI_DEFAULT MENUITEM "&Italian", IDM_LOCALE_ITALIAN_ITALIAN MENUITEM "&Japanese", IDM_LOCALE_JAPANESE_DEFAULT MENUITEM "Korean (E&xtended Wansung)",IDM_LOCALE_KOREAN_KOREAN // MENUITEM "Korean (Joha&b)", IDM_LOCALE_KOREAN_JOHAB MENUITEM "Polish", IDM_LOCALE_POLISH_DEFAULT MENUITEM "Romanian", IDM_LOCALE_ROMANIAN_DEFAULT MENUITEM "Russian", IDM_LOCALE_RUSSIAN_DEFAULT MENUITEM "Spanish (Castilian)", IDM_LOCALE_SPANISH_CASTILIAN MENUITEM "&Spanish (Mexican)", IDM_LOCALE_SPANISH_MEXICAN MENUITEM "&Spanish (Modern)", IDM_LOCALE_SPANISH_MODERN MENUITEM "Swahili", IDM_LOCALE_SWAHILI_DEFAULT MENUITEM "S&wedish", IDM_LOCALE_SWEDISH_DEFAULT MENUITEM "Thai", IDM_LOCALE_THAI_DEFAULT MENUITEM "Turkish", IDM_LOCALE_TURKISH_DEFAULT MENUITEM "Ukrainian", IDM_LOCALE_UKRAINIAN_DEFAULT MENUITEM "Vietnamese", IDM_LOCALE_VIETNAMESE_DEFAULT END POPUP "D&ialect" BEGIN MENUITEM "Tripolish 1", IDM_DIALECT_1 MENUITEM "Tripolish 2", IDM_DIALECT_2 MENUITEM "SQL Text", IDM_DIALECT_3 END POPUP "Li&mit Results" BEGIN MENUITEM "10 Hits", IDM_LIMIT_10 MENUITEM "300 Hits", IDM_LIMIT_300 MENUITEM "No Hit Limit", IDM_LIMIT_NONE END POPUP "Fi&rst Rows" BEGIN MENUITEM "5 Hits", IDM_FIRSTROWS_5 MENUITEM "15 Hits", IDM_FIRSTROWS_15 MENUITEM "No Hit Limit", IDM_FIRSTROWS_NONE END MENUITEM SEPARATOR MENUITEM "&Displayed Properties...\tCtrl+Y" IDM_DISPLAY_PROPS END POPUP "&Window" BEGIN MENUITEM "&Tile\tShift+F5", IDM_TILE MENUITEM "&Cascade\tShift+F4", IDM_CASCADE END POPUP "&Help" BEGIN MENUITEM "&Contents\tF1", IDM_HELP_CONTENTS MENUITEM "&About Search...", IDM_ABOUT END END
ResultsContextMenu MENU BEGIN POPUP "" BEGIN MENUITEM "&Browse hits", IDM_BROWSE MENUITEM "&Open", IDM_BROWSE_OPEN MENUITEM "&Edit", IDM_BROWSE_EDIT MENUITEM SEPARATOR MENUITEM "&Copy path", IDM_EDITCOPY MENUITEM "Copy &all paths", IDM_EDITCOPYALL END END
BrowseContextMenu MENU BEGIN POPUP "" BEGIN MENUITEM "&Open", IDM_BROWSE_OPEN MENUITEM "&Edit", IDM_BROWSE_EDIT MENUITEM SEPARATOR MENUITEM "&Copy", IDM_EDITCOPY END END
HeaderContextMenu MENU BEGIN POPUP "" BEGIN MENUITEM "&Change displayed properties..." IDM_DISPLAY_PROPS END END
SrchAcc ACCELERATORS BEGIN VK_INSERT, IDM_EDITCOPY, VIRTKEY, CONTROL VK_INSERT, IDM_EDITPASTE, VIRTKEY, SHIFT VK_DELETE, IDM_EDITCUT, VIRTKEY, SHIFT VK_BACK, IDM_EDITUNDO, VIRTKEY, ALT VK_F5, IDM_TILE, VIRTKEY, SHIFT VK_F4, IDM_CASCADE, VIRTKEY, SHIFT VK_TAB, ACC_TAB, VIRTKEY VK_TAB, ACC_SHIFTTAB, VIRTKEY, SHIFT VK_ESCAPE, IDM_NEWSEARCH, VIRTKEY "q", ACC_ALTQ, ALT "r", ACC_ALTR, ALT "^a", IDM_SEARCHCLASSDEF "^b", IDM_BROWSE "^c", IDM_EDITCOPY "^d", IDM_SCOPE_AND_DEPTH "^f", IDM_SEARCHFUNCDEF "^n", IDM_NEXT_HIT "^o", IDM_OPEN "^p", IDM_PREVIOUS_HIT "^s", IDM_SEARCH "^t", IDM_CATALOG_STATUS "^v", IDM_EDITPASTE "^x", IDM_EDITCUT "^y", IDM_DISPLAY_PROPS VK_F8, IDM_NEXT_HIT, VIRTKEY VK_F7, IDM_PREVIOUS_HIT, VIRTKEY VK_SPACE, ACC_CTRLSPACE, VIRTKEY, CONTROL END
ScopeBox DIALOG 36, 88, 241, 186 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU CAPTION "Catalog Selection" FONT 8, "MS Shell Dlg" BEGIN GROUPBOX "Custom:", 102, 4, 4, 233, 70
LTEXT "&Machine:", 403, 10, 14, 30, 8 EDITTEXT ID_SCOPE_MACHINE_EDIT, 46, 12, 128, 12, ES_AUTOHSCROLL
LTEXT "&Catalog:", 402, 10, 30, 30, 8 EDITTEXT ID_SCOPE_CATALOG_EDIT, 46, 28, 128, 12, ES_AUTOHSCROLL
LTEXT "&Scope:", 101, 10, 46, 30, 8 EDITTEXT ID_SCOPE_EDIT, 46, 44, 128, 12, ES_AUTOHSCROLL
AUTOCHECKBOX "&Include subdirectories:", ID_SCOPE_DEEP, 9, 60, 88, 10, BS_LEFTTEXT
PUSHBUTTON "&Add", ID_CATALOG_ADD, 179, 32, 50, 14
LTEXT "Ca&talogs:", 404, 4, 78, 58, 8
CONTROL "List2", ID_CATALOG_LIST, "SysListView32", LVS_REPORT | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP, 4, 90, 232, 73
DEFPUSHBUTTON "OK", IDOK, 131, 168, 50, 14 PUSHBUTTON "Cancel", IDCANCEL, 186, 168, 50, 14 END
DISPLAYPROPSBOX DIALOG 64, 38, 226, 160 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU CAPTION "Property Columns" FONT 8, "MS Shell Dlg" BEGIN LTEXT "Dis&played", 103, 12, 4, 46, 8 LISTBOX ID_PROP_DISP, 12, 14, 94, 100, WS_VSCROLL | WS_TABSTOP LTEXT "&Available", 104, 120, 4, 37, 8 LISTBOX ID_PROP_AVAIL, 120, 14, 94, 100, LBS_SORT | WS_VSCROLL | WS_TABSTOP PUSHBUTTON ">> &Hide", ID_PROP_REMOVE, 32, 120, 48, 14 PUSHBUTTON "&Display <<", ID_PROP_ADD, 146, 120, 48, 14 DEFPUSHBUTTON "OK", IDOK, 26, 140, 44, 14 PUSHBUTTON "De&fault", ID_PROP_DEFAULT, 91, 140, 44, 14 PUSHBUTTON "Cancel", IDCANCEL, 156, 140, 44, 14 END
CatalogStatusBox DIALOG 26, 44, 128, 48 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US STYLE WS_SYSMENU | WS_POPUP | WS_VISIBLE | WS_CAPTION EXSTYLE WS_EX_TOOLWINDOW | DS_3DLOOK CAPTION "Catalog Status" FONT 8, "MS Shell Dlg" BEGIN LTEXT "To filter:", 114, 2, 0, 34, 8 LTEXT "", ID_STAT_FTF, 36, 0, 24, 8 LTEXT "Filtered:", 118, 2, 8, 34, 8 LTEXT "", ID_STAT_FF, 36, 8, 24, 8 LTEXT "Fresh:", 116, 2, 16, 34, 8 LTEXT "", ID_STAT_FTE, 36, 16, 24, 8 LTEXT "Wordlists:", 110, 2, 24, 34, 8 LTEXT "", ID_STAT_WL, 36, 24, 24, 8 LTEXT "Indexes:", 112, 2, 32, 34, 8 LTEXT "", ID_STAT_PI, 36, 32, 24, 8 LTEXT "Queries:", 117, 2, 40, 34, 8 LTEXT "", ID_STAT_Q, 36, 40, 24, 8
LTEXT "Keys:", 108, 62, 0, 24, 8 LTEXT "", ID_STAT_KEYS, 86, 0, 40, 8 LTEXT "Files:", 109, 62, 8, 24, 8 LTEXT "", ID_STAT_FILES, 86, 8, 40, 8 LTEXT "Scan:", 104, 62, 16, 24, 8 LTEXT "", ID_STAT_SCANNING, 86, 16, 40, 8 LTEXT "State:", 105, 62, 24, 24, 8 LTEXT "", ID_STAT_STATUS, 86, 24, 40, 8 LTEXT "Merge:", 106, 62, 32, 24, 8 LTEXT "", ID_STAT_MT, 86, 32, 40, 8 LTEXT "Sec Q:", 107, 62, 40, 24, 8 LTEXT "", ID_STAT_SECQ, 86, 40, 40, 8 END
STRINGTABLE BEGIN IDS_IDM_OPEN L"Open a new search window" IDS_IDM_EXIT L"Quit the application" IDS_IDM_TILE L"Tile all windows" IDS_IDM_CASCADE L"Cascade all windows" IDS_IDM_ARRANGE L"Arrange iconic windows" IDS_IDM_EDITUNDO L"Undo last edit" IDS_IDM_EDITCOPY L"Copy selected text into the clipboard" IDS_IDM_EDITPASTE L"Paste clipboard text" IDS_IDM_EDITCUT L"Remove selected text into the clipboard" IDS_IDM_EDITCLEAR L"Remove selected text" IDS_IDM_SEARCH L"Search" IDS_IDM_SEARCHCLASSDEF L"Search for C/C++ struct/class" IDS_IDM_SEARCHFUNCDEF L"Search for C/C++ function/method" IDS_IDM_NEWSEARCH L"Clear search window fields" IDS_IDM_FONT L"Set the window's font" IDS_IDM_ABOUT L"Display program information" IDS_IDM_STATUS_BAR L"Toggle the status bar on/off" IDS_IDM_WINDOWCHILD L"Make window active" IDS_IDM_CLOSE L"Close the current window" IDS_IDM_ICON_BAR L"Toggle the toolbar on/off" IDS_IDM_BROWSE L"Browse the selected document" IDS_IDM_BROWSE_TOOL L"Set the browse tool to use when browsing" IDS_IDM_NEXT_HIT L"View the next hit in the document" IDS_IDM_PREVIOUS_HIT L"View the previous hit in the document" IDS_IDM_WRITE_RESULTS L"Saves the file names in the result to a text file" IDS_IDM_SCOPE_AND_DEPTH L"Changes the scope and depth of a search"
IDS_IDM_DIALECT_1 L"Original query language" IDS_IDM_DIALECT_2 L"New Tripolish language" IDS_IDM_DIALECT_3 L"SQL/Monarch language"
IDS_IDM_LOCALE_NEUTRAL L"Query in a neutral language" IDS_IDM_LOCALE_CHINESE_TRADITIONAL L"Query in Chinese Traditional" IDS_IDM_LOCALE_CHINESE_SIMPLIFIED L"Query in Chinese Simplified" IDS_IDM_LOCALE_CHINESE_HONGKONG L"Query in Chinese (Hong Kong SAR)" IDS_IDM_LOCALE_CHINESE_SINGAPORE L"Query in Chinese Singapore" IDS_IDM_LOCALE_CHINESE_MACAU L"Query in Chinese (Macau SAR)" IDS_IDM_LOCALE_DUTCH_DUTCH L"Query in Dutch" IDS_IDM_LOCALE_ENGLISH_CAN L"Query in English Canadian" IDS_IDM_LOCALE_ENGLISH_US L"Query in English US" IDS_IDM_LOCALE_ENGLISH_UK L"Query in English UK" IDS_IDM_LOCALE_FINNISH_DEFAULT L"Query in Finnish" IDS_IDM_LOCALE_FARSI_DEFAULT L"Query in Farsi" IDS_IDM_LOCALE_FRENCH_FRENCH L"Query in French" IDS_IDM_LOCALE_FRENCH_CANADIAN L"Query in French Canadian" IDS_IDM_LOCALE_GERMAN_GERMAN L"Query in German" IDS_IDM_LOCALE_GREEK_DEFAULT L"Query in Greek" IDS_IDM_LOCALE_HEBREW_DEFAULT L"Query in Hebrew" IDS_IDM_LOCALE_HINDI_DEFAULT L"Query in Hindi" IDS_IDM_LOCALE_ITALIAN_ITALIAN L"Query in Italian" IDS_IDM_LOCALE_JAPANESE_DEFAULT L"Query in Japanese" IDS_IDM_LOCALE_KOREAN_KOREAN L"Query in Korean" // IDS_IDM_LOCALE_KOREAN_JOHAB L"Query in Korean Johab" IDS_IDM_LOCALE_POLISH_DEFAULT L"Query in Polish" IDS_IDM_LOCALE_ROMANIAN_DEFAULT L"Query in Romanian" IDS_IDM_LOCALE_RUSSIAN_DEFAULT L"Query in Russian" IDS_IDM_LOCALE_SPANISH_CASTILIAN L"Query in Spanish Castilian" IDS_IDM_LOCALE_SPANISH_MEXICAN L"Query in Spanish Mexican" IDS_IDM_LOCALE_SPANISH_MODERN L"Query in Spanish Modern" IDS_IDM_LOCALE_SWAHILI_DEFAULT L"Query in Swahili" IDS_IDM_LOCALE_SWEDISH_DEFAULT L"Query in Swedish" IDS_IDM_LOCALE_THAI_DEFAULT L"Query in Thai" IDS_IDM_LOCALE_TURKISH_DEFAULT L"Query in Turkish" IDS_IDM_LOCALE_UKRAINIAN_DEFAULT L"Query in Ukrainian" IDS_IDM_LOCALE_VIETNAMESE_DEFAULT L"Query in Vietnamese"
IDS_IDM_LIMIT_10 L"Limit results to 10 hits" IDS_IDM_LIMIT_300 L"Limit results to 300 hits" IDS_IDM_LIMIT_NONE L"No limit on result count" IDS_IDM_FIRSTROWS_5 L"Limit results to first 5 hits" IDS_IDM_FIRSTROWS_15 L"Limit results to first 15 hits" IDS_IDM_FIRSTROWS_NONE L"No limit on result count"
IDS_IDM_DISPLAY_PROPS L"Change property columns" IDS_IDM_HELP_CONTENTS L"Invoke online help" IDS_IDM_CATALOG_STATUS L"Displays status of the current catalog" IDS_IDM_FILTER_SCOPE L"Adds files in a path to the index" IDS_IDM_FORCE_USE_CI L"Force use of the index; don't enumerate" IDS_IDM_EDITCOPYALL L"Copy paths for all hits to the clipboard" IDS_IDM_MASTER_MERGE L"Start a merge on the index (make it smaller/faster)" IDS_IDM_BROWSE_OPEN L"Open the document" IDS_IDM_BROWSE_EDIT L"Edit the document"
IDS_HITSTITLE L"&Results: " IDS_APPNAME L"Search" IDS_QUERYTITLE L"&Query:" IDS_HITCOUNT L"%ld hits - %3.1f seconds" IDS_QUERYDONE L"done" IDS_QUERYERROR L"error" IDS_ABOUT_BONUS L"Indexing Service search tool" IDS_COUNTTITLE L"Type a query then press Enter" IDS_COUNTSTART L"issuing query..." IDS_COUNTEND L"freeing query..." IDS_CLOSEBROWSE L"Close the browser" IDS_BRSTAT_CLINES L"%d lines" IDS_BRSTAT_CHITS L"hit %d of %d" IDS_BOOL_TRUE L"true" IDS_BOOL_FALSE L"false" IDS_ATTRIB_INIT L"rhsdaentSpcoi" IDS_RELIABILITY_OUTOFDATE L"the index is out of date" IDS_RELIABILITY_NOISE L"the query contained noise words" IDS_RELIABILITY_PARTIAL L"partial scope" IDS_RELIABILITY_REFRESH_INCOMPLETE L"refresh incomplete" IDS_BLOB_FORMAT L"blob size 0x%x pdata 0x%x" IDS_YES L"yes" IDS_NO L"no" IDS_MERGE_SHADOW L"shadow" IDS_MERGE_ANNEALING L"anneal" IDS_MERGE_MASTER L"master" IDS_STATUS_CAPTION L"Catalog status:%ws %ws" IDS_RELIABILITY_CONTENT_QUERY_INCOMPLETE L"too expensive or must enumerate" IDS_RELIABILITY_TIME_LIMIT_EXCEEDED L"time limit exceeded" IDS_MERGE_MASTER_PAUSED L"paused" IDS_CI_STATE_OK L"ok" IDS_CI_STATE_RECOVER L"recover" IDS_CI_STATE_LOMEM L"low mem" IDS_CI_STATE_HIIO L"high io" IDS_CI_STATE_USER_ACTIVE L"user busy" IDS_CI_STATE_READ_ONLY L"read only" IDS_CI_STATE_BATTERY L"battery" IDS_CI_STATE_STARTING L"starting" IDS_CI_STATE_READING_USNS L"read usns" IDS_CATLIST_COL_MACHINE L"Machine" IDS_CATLIST_COL_CATALOG L"Catalog" IDS_CATLIST_COL_SCOPE L"Scope" IDS_CATLIST_COL_SUBDIRS L"Subdirs"
IDS_ERR_CANT_OPEN_FILE L"Can't open this file." IDS_ERR_CANT_OPEN_HELP L"Can't find the help file." IDS_ERR_BAD_VERSION L"Can't execute query; version mismatch. Get a new srch.exe and query.dll" IDS_ERR_QUERY_ERROR L"Can't execute query: %ws" IDS_ERR_CANT_BROWSE_FILE L"Can't browse file: %ws" IDS_ERR_NO_CATALOG_SPECIFIED L"A catalog must be specified." IDS_ERR_BAD_CATALOG_SPECIFIED L"The catalog can't be accessed."
IDS_SQLQUERY_FORMAT L"SELECT %s FROM %s..SCOPE('""%s""') WHERE %s" END
// // These are the built-in catalogs that appear in the catalog dialog. // The format is machinename\0catalogname\0. //
IDR_CATALOGS RCDATA { L"index\0sources\0" L"index1\0sources\0" L"index2\0sources\0" L"index2a\0sources\0" L"b11mswsrch05:mssearch\0sharepointportalserver\\msw\0" L"exidx\0ptrtm\0" L"urtindex\0all_source\0" }
|