| Автор
| Сообщение |
|
|
|
Цитата |
|
| Дайте пожалуйста ссылку на описание функции SHBrowseFolder, заранее благодарю! |
|
| В начало |
|
 |
|
|
 |
 Gelios
Oracle-вый маньяк, Админ

Возраст: 37
Знак зодиака: 
Зарегистрирован: 10.03.2005
Сообщения: 6141
Откуда: Яблочный рай
|
|
|
Цитата |
|
[Now Supported on Windows NT]
Displays a dialog box that enables the user to select a shell folder.
WINSHELLAPI LPITEMIDLIST WINAPI SHBrowseForFolder(
LPBROWSEINFO lpbi
);
Parameters
lpbi
Pointer to a BROWSEINFO structure that contains information used to display the dialog box.
Return Values
Returns a pointer to an item identifier list that specifies the location of the selected folder relative to the root of the name space. If the user chooses the Cancel button in the dialog box, the return value is NULL.
The calling application is responsible for freeing the returned item identifier list using the shell's task allocator.
Contains parameters for the the SHBrowseForFolder function and receives information about the folder selected by the user.
typedef struct _browseinfo {
HWND hwndOwner; // see below
LPCITEMIDLIST pidlRoot; // see below
LPSTR pszDisplayName; // see below
LPCSTR lpszTitle; // see below
UINT ulFlags; // see below
BFFCALLBACK lpfn; // see below
LPARAM lParam; // see below
int iImage; // see below
} BROWSEINFO, *PBROWSEINFO, *LPBROWSEINFO;
Members
hwndOwner
Handle of the owner window for the dialog box.
pidlRoot
Pointer to an item identifier list (an ITEMIDLIST structure) specifying the location of the "root" folder to browse from. Only the specified folder and its subfolders appear in the dialog box. This member can be NULL, and in that case, the name space root (the desktop folder) is used.
pszDisplayName
Pointer to a buffer that receives the display name of the folder selected by the user. The size of this buffer is assumed to be MAX_PATH bytes.
lpszTitle
Pointer to a null-terminated string that is displayed above the tree view control in the dialog box. This string can be used to specify instructions to the user.
ulFlags
Value specifying the types of folders to be listed in the dialog box as well as other options. This member can include zero or more of the following values:
BIF_BROWSEFORCOMPUTER Only returns computers. If the user selects anything other than a computer, the OK button is grayed.
BIF_BROWSEFORPRINTER Only returns printers. If the user selects anything other than a printer, the OK button is grayed.
BIF_DONTGOBELOWDOMAIN Does not include network folders below the domain level in the tree view control.
BIF_RETURNFSANCESTORS Only returns file system ancestors. If the user selects anything other than a file system ancestor, the OK button is grayed.
BIF_RETURNONLYFSDIRS Only returns file system directories. If the user selects folders that are not part of the file system, the OK button is grayed.
BIF_STATUSTEXT Includes a status area in the dialog box. The callback function can set the status text by sending messages to the dialog box.
lpfn
Address an application-defined function that the dialog box calls when events occur. For more information, see the description of the BrowseCallbackProc function. This member can be NULL.
lParam
Application-defined value that the dialog box passes to the callback function (if one is specified).
iImage
Variable that receives the image associated with the selected folder. The image is specified as an index to the system image list.
Contains a list of item identifiers.
typedef struct _ITEMIDLIST { // idl
SHITEMID mkid; // list of item identifers
} ITEMIDLIST, * LPITEMIDLIST;
typedef const ITEMIDLIST * LPCITEMIDLIST;
Specifies an application-defined callback function used with the SHBrowseForFolder function. The browse dialog box calls this function to notify it about events. The BFFCALLBACK type defines a pointer to this callback function.
int BrowseCallbackProc(
HWND hwnd,
UINT uMsg,
LPARAM lParam,
LPARAM lpData
);
Parameters
hwnd
Handle to the browse dialog box. The callback function can send the following messages to this window:
BFFM_ENABLEOK Enables the OK button if the wParam parameter is nonzero or disables it if wParam is zero.
BFFM_SETSELECTION Selects the specified folder. The lParam parameter is the PIDL of the folder to select if wParam is FALSE, or it is the path of the folder otherwise.
BFFM_SETSTATUSTEXT Sets the status text to the null-terminated string specified by the lParam parameter.
uMsg
Value identifying the event. This parameter can be one of the following values:
BFFM_INITIALIZED The browse dialog box has finished initializing. lpData is NULL.
BFFM_SELCHANGED The selection has changed. lpData is a pointer to the item identifier list for the newly selected folder.
lParam
Message-specific value. For more information, see the description of uMsg.
lpData
Application-defined value that was specified in the lParam member of the BROWSEINFO structure.
Return Values
Returns zero. _________________ нельзя давать всем всего, ибо всех много, а всего мало |
|
| В начало |
|
 |
 Gelios
Oracle-вый маньяк, Админ

Возраст: 37
Знак зодиака: 
Зарегистрирован: 10.03.2005
Сообщения: 6141
Откуда: Яблочный рай
|
|
|
Цитата |
|
с делфи идет windows sdk. см там _________________ нельзя давать всем всего, ибо всех много, а всего мало |
|
| В начало |
|
 |
DrPass
Знающий :) /Почетный Модератор/

Возраст: 31
Знак зодиака: 
Зарегистрирован: 02.05.2002
Сообщения: 5709
Откуда: Донецк
|
|
|
Цитата |
|
Эх, если бы все русские юзеры знали англицкий, как бы круто было бы жить  _________________ Да пребудет с вами Сила! |
|
| В начало |
|
 |
 Gelios
Oracle-вый маньяк, Админ

Возраст: 37
Знак зодиака: 
Зарегистрирован: 10.03.2005
Сообщения: 6141
Откуда: Яблочный рай
|
|
|
Цитата |
|
ну я тоже английский не знаю, однако приходиться хелпы понимать  _________________ нельзя давать всем всего, ибо всех много, а всего мало |
|
| В начало |
|
 |
|
|
| В начало |
|
 |
 Gelios
Oracle-вый маньяк, Админ

Возраст: 37
Знак зодиака: 
Зарегистрирован: 10.03.2005
Сообщения: 6141
Откуда: Яблочный рай
|
|
|
Цитата |
|
ну я на промте могу переводить  _________________ нельзя давать всем всего, ибо всех много, а всего мало |
|
| В начало |
|
 |
|
|
|
Цитата |
|
| Gelios писал(а): | ну я на промте могу переводить  |
Это и есть промтовский сайт  |
|
| В начало |
|
 |
 Gelios
Oracle-вый маньяк, Админ

Возраст: 37
Знак зодиака: 
Зарегистрирован: 10.03.2005
Сообщения: 6141
Откуда: Яблочный рай
|
|
| В начало |
|
 |
|
|
 |
 aka57
Я живу тут....

Возраст: 28
Знак зодиака: 
Зарегистрирован: 03.07.2003
Сообщения: 1287
|
|
|
Цитата |
|
Я тоже не в ладах с английским, но Лингва всегда придет на помощь  |
|
| В начало |
|
 |
 Шурик
Я живу тут....

Возраст: 42
Знак зодиака: 
Зарегистрирован: 15.01.2003
Сообщения: 1951
Откуда: Киев
|
|
|
Цитата |
|
Классику нужно читать в оригинале !!!
Ну в Lingvo на крайний случай глянуть... Но автоматические переводы весьма корявые для нормального понимания. По-моему, пользоваться ими можно только если совсем не знаешь языка. _________________ Ответ готов, готов ли твой вопрос? |
|
| В начало |
|
 |
 orlov_ds
Модератор

Возраст: 31
Знак зодиака: 
Зарегистрирован: 14.04.2004
Сообщения: 1723
Откуда: Новосибирск
|
|
|
Цитата |
|
Да в инете одни ПРОМТ - ие словари, и перевод у них почти одинаковый  _________________ Хорошо излагает, зараза! Учитесь, Киса! |
|
| В начало |
|
 |
VaDima
Энтузиаст

Возраст: 36
Знак зодиака: 
Зарегистрирован: 18.12.2002
Сообщения: 369
Откуда: Из лесу, вестимо
|
|
|
Цитата |
|
| Цитата: | | Классику нужно читать в оригинале |
То есть не
| Цитата: | | с делфи идет windows sdk |
а MSDN. Угу?  _________________ Он умудрялся на бегу прописать дырочку в снегу. (Веня Дркин) |
|
| В начало |
|
 |
 Gelios
Oracle-вый маньяк, Админ

Возраст: 37
Знак зодиака: 
Зарегистрирован: 10.03.2005
Сообщения: 6141
Откуда: Яблочный рай
|
|
|
Цитата |
|
to VaDima
что-то я не уловил твою мыслю  _________________ нельзя давать всем всего, ибо всех много, а всего мало |
|
| В начало |
|
 |
|