📄 group__mywins__filedlg.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Open File Dialog Box</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Open File Dialog Box<br><small>[<a class="el" href="group__mywins__fns.htm">Interfaces of MyWins module of MiniGUIExt library</a>]</small></h1><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct__FILEDLGDATA.htm">_FILEDLGDATA</a></ul><h2>Defines</h2><ul><li>#define <a class="el" href="group__mywins__filedlg.htm#ga4">FILE_ERROR_OK</a> 0<li>#define <a class="el" href="group__mywins__filedlg.htm#ga5">FILE_ERROR_PARAMERR</a> -1<li>#define <a class="el" href="group__mywins__filedlg.htm#ga6">FILE_ERROR_PATHNOTEXIST</a> -2</ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="struct__FILEDLGDATA.htm">_FILEDLGDATA</a> <a class="el" href="group__mywins__filedlg.htm#ga0">FILEDLGDATA</a><li>typedef <a class="el" href="struct__FILEDLGDATA.htm">FILEDLGDATA</a> * <a class="el" href="group__mywins__filedlg.htm#ga1">PFILEDLGDATA</a></ul><h2>Functions</h2><ul><li>MGEXT_EXPORT int <a class="el" href="group__mywins__filedlg.htm#ga2">OpenFileDialogEx</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int lx, int ty, int w, int h, <a class="el" href="struct__FILEDLGDATA.htm">PFILEDLGDATA</a> pmwfi)<dl class="el"><dd class="mdescRight">Creates an Open File Dialog Box. <a href="#ga2"></a><br></dl><li>static int <a class="el" href="group__mywins__filedlg.htm#ga3">OpenFileDialog</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> isSave, <a class="el" href="struct__FILEDLGDATA.htm">PFILEDLGDATA</a> pmwfi)<dl class="el"><dd class="mdescRight">Creates an Open File Dialog Box. <a href="#ga3"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga4" doxytag="filedlg.h::FILE_ERROR_OK"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define FILE_ERROR_OK 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__filedlg.htm#ga2">OpenFileDialogEx</a>, <a class="el" href="group__mywins__filedlg.htm#ga3">OpenFileDialog</a> </dd></dl><p>Definition at line <a class="el" href="filedlg_8h-source.htm#l00055">55</a> of file <a class="el" href="filedlg_8h-source.htm">filedlg.h</a>. </td> </tr></table><a class="anchor" name="ga5" doxytag="filedlg.h::FILE_ERROR_PARAMERR"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define FILE_ERROR_PARAMERR -1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__filedlg.htm#ga2">OpenFileDialogEx</a>, <a class="el" href="group__mywins__filedlg.htm#ga3">OpenFileDialog</a> </dd></dl><p>Definition at line <a class="el" href="filedlg_8h-source.htm#l00061">61</a> of file <a class="el" href="filedlg_8h-source.htm">filedlg.h</a>. </td> </tr></table><a class="anchor" name="ga6" doxytag="filedlg.h::FILE_ERROR_PATHNOTEXIST"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define FILE_ERROR_PATHNOTEXIST -2 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__filedlg.htm#ga2">OpenFileDialogEx</a>, <a class="el" href="group__mywins__filedlg.htm#ga3">OpenFileDialog</a> </dd></dl><p>Definition at line <a class="el" href="filedlg_8h-source.htm#l00067">67</a> of file <a class="el" href="filedlg_8h-source.htm">filedlg.h</a>. </td> </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="filedlg.h::FILEDLGDATA"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">typedef struct <a class="el" href="struct__FILEDLGDATA.htm">_FILEDLGDATA</a> <a class="el" href="struct__FILEDLGDATA.htm">FILEDLGDATA</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The file dialog box structure used by <em>OpenFileDialogEx</em>. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__filedlg.htm#ga2">OpenFileDialogEx</a>. </dd></dl> </td> </tr></table><a class="anchor" name="ga1" doxytag="filedlg.h::PFILEDLGDATA"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">typedef <a class="el" href="struct__FILEDLGDATA.htm">FILEDLGDATA</a>* <a class="el" href="struct__FILEDLGDATA.htm">PFILEDLGDATA</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Data type of pointer to a FILEDLGDATA <p>Definition at line <a class="el" href="filedlg_8h-source.htm#l00086">86</a> of file <a class="el" href="filedlg_8h-source.htm">filedlg.h</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga3" doxytag="filedlg.h::OpenFileDialog"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">OpenFileDialog </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname" nowrap> <em>hWnd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__simple__types.htm#ga0">BOOL</a> </td> <td class="mdname" nowrap> <em>isSave</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="struct__FILEDLGDATA.htm">PFILEDLGDATA</a> </td> <td class="mdname" nowrap> <em>pmwfi</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline, static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates an Open File Dialog Box. <p>This function creates an Open File Dialog Box, and returns the full path name of the file selected by user.<p>It is defined an inline function calling <em>OpenFileDialogEx</em>.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hWnd</em> </td><td>The hosting main window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>isSave</em> </td><td>Indicates to create a Save File or an Open File dialog box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pmwfi</em> </td><td>The pointer to the FILEDLGDATA structure.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A positive integer on success, negative on error.</dd></dl><dl compact><dt><b>Return values:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>IDOK</em> </td><td>The user choosed a file and OK button clicked. </td></tr> <tr><td valign="top"></td><td valign="top"><em>IDCANCLE</em> </td><td>CANCEL button clicked. </td></tr> <tr><td valign="top"></td><td valign="top"><em>FILE_ERROR_PARAMERR</em> </td><td>You passed a wrong parameters. </td></tr> <tr><td valign="top"></td><td valign="top"><em>FILE_ERROR_PATHNOTEXIST</em> </td><td>The path specified in <em>pmwfi</em> does not exist.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__filedlg.htm#ga0">FILEDLGDATA</a>, <a class="el" href="group__mywins__filedlg.htm#ga2">OpenFileDialogEx</a> </dd></dl><p>Definition at line <a class="el" href="filedlg_8h-source.htm#l00138">138</a> of file <a class="el" href="filedlg_8h-source.htm">filedlg.h</a>.<p>References <a class="el" href="filedlg_8h-source.htm#l00076">_FILEDLGDATA::IsSave</a>, and <a class="el" href="group__mywins__filedlg.htm#ga2">OpenFileDialogEx()</a>. </td> </tr></table><a class="anchor" name="ga2" doxytag="filedlg.h::OpenFileDialogEx"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">OpenFileDialogEx </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname" nowrap> <em>hWnd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>lx</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>ty</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>w</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>h</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="struct__FILEDLGDATA.htm">PFILEDLGDATA</a> </td> <td class="mdname" nowrap> <em>pmwfi</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates an Open File Dialog Box. <p>This function creates an Open File Dialog Box, and returns the full path name of the file selected by user.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hWnd</em> </td><td>The hosting main window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>lx</em> </td><td>lx: The default position and size of the dialog box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ty</em> </td><td>ly: The default position and size of the dialog box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>w: The default position and size of the dialog box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>h</em> </td><td>h: The default position and size of the dialog box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pmwfi</em> </td><td>The pointer to the FILEDLGDATA structure.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A positive integer on success, negative on error.</dd></dl><dl compact><dt><b>Return values:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>IDOK</em> </td><td>The user choosed a file and OK button clicked. </td></tr> <tr><td valign="top"></td><td valign="top"><em>IDCANCLE</em> </td><td>CANCEL button clicked. </td></tr> <tr><td valign="top"></td><td valign="top"><em>FILE_ERROR_PARAMERR</em> </td><td>You passed a wrong parameters. </td></tr> <tr><td valign="top"></td><td valign="top"><em>FILE_ERROR_PATHNOTEXIST</em> </td><td>The path specified in <em>pmwfi</em> does not exist.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__filedlg.htm#ga0">FILEDLGDATA</a>, <a class="el" href="group__mywins__filedlg.htm#ga3">OpenFileDialog</a> </dd></dl><p>Referenced by <a class="el" href="filedlg_8h-source.htm#l00138">OpenFileDialog()</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:56 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -