亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? faq62.htm

?? C++builder學(xué)習(xí)資料C++builder
?? HTM
?? 第 1 頁 / 共 2 頁
字號:
    LPSTR         pszDisplayName<b>;</b>

    LPCSTR        lpszTitle<b>;</b>

    UINT          ulFlags<b>;</b>

    BFFCALLBACK   lpfn<b>;</b>

    LPARAM        lParam<b>;</b>

    <b>int</b>           iImage<b>;</b>

<b>}</b> BROWSEINFO<b>;</b>

</pre>

<P>

<B><TT>hwndOwner:</TT></B> Specifies the handle of the owner window of the browsing dialog. If you

supply an owner, the browse dialog will behave modally with respect to the owner window.

The user will not be able to interact with your program while the browse dialog is displayed.

This is usually the effect that you want. Also, when you specify an owner, the taskbar will

not display a separate icon for the browsing dialog. If you set <TT>hwndOwner</TT> to

<TT>NULL</TT>, then the browsing dialog behaves like a separate window that is not part

of your program. Users will still be able to interact with your program and the browsing

dialog will have its own taskbar icon.

</P>

<P>

<B><TT>pidlRoot:</TT></B> Specifies the root <TT>PIDL</TT>, or directory, of the browsing dialog. The root

<TT>PIDL</TT> acts like the base folder for the dialog. The user cannot backup past the root folder.

For example, let's say that you want your users to select a folder on the <TT>C:</TT> drive. You

could obtain a <TT>PIDL</TT> for the C:\ drive (how you obtain that is complicated enough to

warrant its own FAQ), and then assign this <TT>PIDL</TT> to the <TT>pidlRoot</TT> member of

<TT>BROWSEINFO</TT>. The browsing dialog would not allow the user to backup past the root

directory of the <TT>C:</TT> drive.

</P>

<P>

<B><TT>pszDisplayName:</TT></B> The browse dialog writes the title of the selected folder into

the <TT>pszDisplayName</TT> member of <TT>BROWSEINFO</TT>. You should point this member to a buffer that can

hold at least <TT>MAX_PATH</TT> characters. Note that the display name is not the same

thing as the directory path to the folder.

</P>

<P>

<B><TT>lpszTitle:</TT></B> This parameter allows you to specify text that the browse info dialog

will display just above the directory treeview (see Figure 1).

</P>

<P>

<B><TT>ulFlags:</TT></B> Controls the type of folders that the user can browse for. The

possible values are:

</P>

<PRE>

BIF_BROWSEFORCOMPUTER  Browses only for computers (network neighborhood).

BIF_BROWSEFORPRINTER   Browses for network printers (somewhat useless).

BIF_DONTGOBELOWDOMAIN  Prevents display of network folders below domain level.

BIF_RETURNFSANCESTORS  Returns file system items (drives and directories).

BIF_RETURNONLYFSDIRS   Returns file system ancestors (so what are those??).

BIF_STATUSTEXT	       Displays a label on the browse dialog.

</PRE>

<P>

Be careful when trying to control <TT>SHBrowseFolder</TT> by altering the <TT>ulFlags</TT> structure member.

You might not get the results that you expect. For example, if you specify the <TT>BIF_BROWSEFORPRINTER</TT> flag, you

might expect that the user will be able to select a local printer that is connected directly to their PC. This turns out

to be false. The <TT>BIF_BROWSEFORPRINTER</TT> only allows the user to browse for network printers. Also, it doesn't

seem to prevent them form selecting a file directory (at least, not when I tried it).

</P>

<P>

<B><TT>lpfn:</TT></B> Pointer to a callback routine. An example is shown below.

</P>

<P>

<B><TT>lParam:</TT></B> Value that is used in the callback routine.

</P>

<P>

<B><TT>iImage:</TT></B> The folder that is selected by <TT>SHBrowseForFolder</TT> will have an associated icon of some

kind. When <TT>SHBrowseForFolder</TT> closes, <TT>iImage</TT> contains an integer value. This value is the selected

folder's index into the system imagelist. If you don't know what the system imagelist is, see my FAQ on

<A HREF="faq21.htm">displaying the same icons that Windows displays</A>.

</P>

<H4>Using a <TT>SHBrowseForFolder</TT> callback routine</H4>

<P>

Two of the <TT>BROWSEINFO</TT> members pertain to some mystical callback hocus pocus. So what is this callback jazz

all about? The callback routine exists so you can customize the behavior of the <TT>SHBrowseForFolder</TT> dialog. For

example, if you don't like (or don't understand, like my) why the <TT>ulFlags</TT> parameter doesn't seem to behave correctly,

you can take control of the browse dialog yourself by using a callback. The callback allows you to enable and disable

the browse dialog's OK button. You can also navigate the dialog to a specific folder or set the status text.

</P>

<P>

Here is a code example that demonstrates how to utilize the browse dialog's callback function.

This code sets the status text of the dialog, and it initialize the browse dialog to a specific directory. The code

also tracks the current selection in the browse dialog and displays the folder path in a label.

</P>

<pre>

<b>int</b> <b>__stdcall</b> BrowseProc<b>(</b>HWND hwnd<b>,</b>UINT uMsg<b>,</b> LPARAM lParam<b>,</b> LPARAM lpData <b>)</b>

<b>{</b>

    <b>char</b> szDir<b>[</b>MAX_PATH<b>]</b><b>;</b>



    <b>switch</b><b>(</b>uMsg<b>)</b>

    <b>{</b>

        <b>case</b> BFFM_INITIALIZED<b>:</b>

            SendMessage<b>(</b>hwnd<b>,</b> BFFM_SETSTATUSTEXT<b>,</b><font color="blue">0</font><b>,</b> <b>(</b>LPARAM<b>)</b><font color="blue">"Greetings"</font><b>)</b><b>;</b>



            <font color="navy">// Set the initial directory. If WPARAM is TRUE, then LPARAM is a</font>

            <font color="navy">// string that contains the path. If WPARAM is FALSE, then LPARAM</font>

            <font color="navy">// should be a lovely PIDL</font>

            SendMessage<b>(</b>hwnd<b>,</b> BFFM_SETSELECTION<b>,</b> TRUE<b>,</b> <b>(</b>LPARAM<b>)</b><font color="blue">"C:\\Delphi4"</font><b>)</b><b>;</b>

            <b>break</b><b>;</b>

        <b>case</b> BFFM_SELCHANGED<b>:</b>

            <b>if</b><b>(</b>SHGetPathFromIDList<b>(</b><b>(</b>LPITEMIDLIST<b>)</b>lParam<b>,</b> szDir<b>)</b><b>)</b>

                Form1<b>-></b>Label3<b>-></b>Caption <b>=</b> szDir<b>;</b>

            <b>break</b><b>;</b>

    <b>}</b>

    <b>return</b> <font color="blue">0</font><b>;</b>

<b>}</b>



<b>void</b> <b>__fastcall</b> TForm1<b>:</b><b>:</b>Button1Click<b>(</b>TObject <b>*</b>Sender<b>)</b>

<b>{</b>

    BROWSEINFO    info<b>;</b>

    <b>char</b>          szDir<b>[</b>MAX_PATH<b>]</b><b>;</b>

    <b>char</b>          szDisplayName<b>[</b>MAX_PATH<b>]</b><b>;</b>

    LPITEMIDLIST  pidl<b>;</b>

    LPMALLOC      pShellMalloc<b>;</b>



    <b>if</b><b>(</b>SHGetMalloc<b>(</b><b>&</b>pShellMalloc<b>)</b> <b>==</b> NO_ERROR<b>)</b>

    <b>{</b>

        memset<b>(</b><b>&</b>info<b>,</b> <font color="blue">0x00</font><b>,</b> <b>sizeof</b><b>(</b>info<b>)</b><b>)</b><b>;</b>

        info<b>.</b>hwndOwner <b>=</b> <font color="blue">0</font><b>;</b>

        info<b>.</b>pidlRoot  <b>=</b> NULL<b>;</b>

        info<b>.</b>pszDisplayName <b>=</b> szDisplayName<b>;</b>

        info<b>.</b>lpszTitle <b>=</b> <font color="blue">"Browse Title"</font><b>;</b>

        info<b>.</b>ulFlags   <b>=</b> BIF_RETURNONLYFSDIRS<b>|</b>BIF_STATUSTEXT<b>;</b>

        info<b>.</b>lpfn      <b>=</b> BrowseProc<b>;</b>             <font color="navy">// callback function</font>



        pidl <b>=</b> SHBrowseForFolder<b>(</b><b>&</b>info<b>)</b><b>;</b>



        <b>if</b><b>(</b>pidl<b>)</b>

        <b>{</b>

            <b>if</b><b>(</b>SHGetPathFromIDList<b>(</b>pidl<b>,</b> szDir<b>)</b><b>)</b>

            <b>{</b>

                Label1<b>-></b>Caption <b>=</b> szDir<b>;</b>

            <b>}</b>



            Label2<b>-></b>Caption <b>=</b> info<b>.</b>pszDisplayName<b>;</b>



            pShellMalloc<b>-></b>Free<b>(</b>pidl<b>)</b><b>;</b>

            pShellMalloc<b>-></b>Release<b>(</b><b>)</b><b>;</b>

        <b>}</b>

    <b>}</b>

<b>}</b>

</pre>



</TD> </TR>



</TABLE>

</CENTER>

</BODY>

</HTML>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本人妖一区二区| 国产精品系列在线| 视频在线观看国产精品| 制服丝袜日韩国产| 日本亚洲三级在线| 精品国产一区二区国模嫣然| 国产一区二区女| 国产日韩精品一区| 99久久er热在这里只有精品66| 亚洲青青青在线视频| 欧美日韩日日骚| 日韩电影在线看| 国产性做久久久久久| 99天天综合性| 五月综合激情日本mⅴ| 精品久久久久久最新网址| 丁香桃色午夜亚洲一区二区三区| 国产精品国产三级国产| 欧美日韩免费一区二区三区视频 | 国产成人在线网站| 中文字幕欧美一| 欧美系列亚洲系列| 久久国产精品72免费观看| 久久久精品黄色| 欧美在线观看视频一区二区三区| 免费在线观看不卡| 国产精品电影院| 91精品国产综合久久精品麻豆| 国产精品一区二区无线| 一区二区三区在线观看网站| 精品少妇一区二区三区免费观看| av网站免费线看精品| 日本vs亚洲vs韩国一区三区| 久久久久亚洲综合| 欧美日本在线一区| 成人激情图片网| 美女视频网站黄色亚洲| 亚洲精品中文字幕在线观看| 精品国产一区二区三区av性色| 在线观看中文字幕不卡| 国产精品亚洲а∨天堂免在线| 亚洲18色成人| 椎名由奈av一区二区三区| 欧美精品一区二区三区蜜桃视频| 91理论电影在线观看| 国产精品一级片| 日韩av一级电影| 一区二区三区蜜桃| 国产精品午夜免费| 久久免费美女视频| 日韩一二在线观看| 欧美午夜一区二区三区免费大片| 粉嫩av一区二区三区在线播放| 免费黄网站欧美| 亚洲福利国产精品| 亚洲精品视频在线| 国产精品久久久久久久久免费樱桃 | xfplay精品久久| 欧美日韩一区二区三区四区五区 | 欧美优质美女网站| 99在线精品一区二区三区| 国产精品一区二区x88av| 久久狠狠亚洲综合| 蜜臀av一区二区在线免费观看| 亚洲香肠在线观看| 夜色激情一区二区| 亚洲手机成人高清视频| 国产精品美女久久久久久久久久久| 欧美电视剧在线观看完整版| 91精品国产黑色紧身裤美女| 欧美色精品在线视频| 91国产丝袜在线播放| 91国偷自产一区二区三区成为亚洲经典| 成人免费黄色在线| zzijzzij亚洲日本少妇熟睡| 成人精品亚洲人成在线| 粉嫩一区二区三区性色av| 国产91丝袜在线18| 成人黄色电影在线| 成人av网址在线观看| 不卡视频免费播放| 97se亚洲国产综合自在线不卡| 成人免费黄色大片| 99精品视频一区二区三区| av亚洲产国偷v产偷v自拍| av不卡免费在线观看| 91一区一区三区| 在线亚洲免费视频| 欧美精品123区| 精品成人在线观看| 久久精品在线观看| 综合久久国产九一剧情麻豆| 亚洲欧美日韩国产另类专区| 亚洲资源在线观看| 美女视频一区二区三区| 国内精品自线一区二区三区视频| 韩国精品一区二区| 成人免费毛片高清视频| 91官网在线免费观看| 欧美一区二区三区电影| 久久久青草青青国产亚洲免观| 日本一区二区三区视频视频| 亚洲精品中文在线| 午夜精品久久久久影视| 看电视剧不卡顿的网站| 成人av网在线| 欧美丝袜丝交足nylons| 精品欧美一区二区在线观看| 欧美激情艳妇裸体舞| 亚洲午夜在线电影| 韩国av一区二区三区在线观看| av亚洲精华国产精华精| 6080午夜不卡| 欧美国产精品久久| 亚洲成人黄色小说| 国产成人自拍在线| 欧美精品免费视频| 欧美激情一区二区三区蜜桃视频 | 欧美男生操女生| 久久久国产一区二区三区四区小说| 成人欧美一区二区三区视频网页| 午夜精品在线看| 成人综合日日夜夜| 欧美一区二区日韩一区二区| 国产精品久久看| 日韩高清不卡在线| 91免费视频网| 久久亚洲一级片| 五月婷婷激情综合网| 成人一级视频在线观看| 欧美一区二区女人| 一区二区三区四区中文字幕| 国产综合久久久久久鬼色| 91福利视频网站| 国产精品理伦片| 久久精品国产精品亚洲综合| 91高清视频免费看| 国产精品乱人伦中文| 久久精品国产在热久久| 欧美亚洲愉拍一区二区| 国产精品午夜在线观看| 国产一区在线观看麻豆| 制服丝袜亚洲播放| 亚洲国产美女搞黄色| 99国产精品久| 亚洲国产精品成人综合色在线婷婷| 三级一区在线视频先锋| 在线观看日韩毛片| 亚洲欧洲日韩在线| 国产.精品.日韩.另类.中文.在线.播放 | 欧美经典三级视频一区二区三区| 日本aⅴ亚洲精品中文乱码| 日韩国产成人精品| 日韩美女一区二区三区四区| 综合久久久久久| 高清在线成人网| 久久久久国产精品厨房| 卡一卡二国产精品| 日韩精品一区二区在线观看| 亚洲成人一二三| 在线精品亚洲一区二区不卡| 一区二区在线免费观看| 99精品视频中文字幕| 中文字幕制服丝袜一区二区三区 | 亚洲伦理在线免费看| 丁香天五香天堂综合| 国产三区在线成人av| 国产精品一区二区三区网站| 26uuu色噜噜精品一区| 麻豆免费精品视频| 日韩午夜电影av| 精品一区二区三区欧美| 精品国内片67194| 国产乱码精品一区二区三| 久久精品日韩一区二区三区| 成人性生交大片免费| 日韩美女视频一区| 色天天综合色天天久久| 亚洲制服丝袜一区| 9191成人精品久久| 老色鬼精品视频在线观看播放| 亚洲精品一区二区三区影院| 国产精品综合视频| 国产精品不卡在线观看| 在线区一区二视频| 日韩二区三区四区| 久久久www成人免费毛片麻豆| 国产成人综合在线播放| 国产精品色哟哟| 99re这里只有精品首页| 中文字幕在线不卡视频| av一区二区三区四区| 一区二区三区在线免费视频| 欧美色图第一页| 日日夜夜精品视频天天综合网| 3d动漫精品啪啪| 极品瑜伽女神91| 国产精品天美传媒| 色又黄又爽网站www久久| 欧美aaaaaa午夜精品|