⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__mywins__newfiledlg.htm

📁 MINIGUI1.6开发API
💻 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&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;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__NEWFILEDLGDATA.htm">_NEWFILEDLGDATA</a></ul><h2>Defines</h2><ul><li>#define <a class="el" href="group__mywins__newfiledlg.htm#ga3">FILE_ERROR_OK</a>&nbsp;&nbsp;&nbsp;0<dl class="el"><dd class="mdescRight">Open file success.  <a href="#ga3"></a><br></dl><li>#define <a class="el" href="group__mywins__newfiledlg.htm#ga4">FILE_ERROR_PARAMERR</a>&nbsp;&nbsp;&nbsp;-1<dl class="el"><dd class="mdescRight">Wrong parameters.  <a href="#ga4"></a><br></dl><li>#define <a class="el" href="group__mywins__newfiledlg.htm#ga6">MAX_FILTER_LEN</a>&nbsp;&nbsp;&nbsp;255<dl class="el"><dd class="mdescRight">The maximum length of filter string.  <a href="#ga6"></a><br></dl><li>#define <a class="el" href="group__mywins__newfiledlg.htm#ga7">MY_NAMEMAX</a>&nbsp;&nbsp;&nbsp;127<dl class="el"><dd class="mdescRight">The maximum length of name.  <a href="#ga7"></a><br></dl><li>#define <a class="el" href="group__mywins__newfiledlg.htm#ga8">MY_PATHMAX</a>&nbsp;&nbsp;&nbsp;255<dl class="el"><dd class="mdescRight">The maximum length of path.  <a href="#ga8"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="struct__NEWFILEDLGDATA.htm">_NEWFILEDLGDATA</a> <a class="el" href="group__mywins__newfiledlg.htm#ga0">NEWFILEDLGDATA</a><li>typedef <a class="el" href="struct__NEWFILEDLGDATA.htm">NEWFILEDLGDATA</a> * <a class="el" href="group__mywins__newfiledlg.htm#ga1">PNEWFILEDLGDATA</a></ul><h2>Functions</h2><ul><li>MGEXT_EXPORT int <a class="el" href="group__mywins__newfiledlg.htm#ga2">ShowOpenDialog</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__NEWFILEDLGDATA.htm">PNEWFILEDLGDATA</a> pnfdd)<dl class="el"><dd class="mdescRight">Creates an Open File Dialog Box.  <a href="#ga2"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga3" doxytag="newfiledlg.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&nbsp;&nbsp;&nbsp;0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Open file success. <p><p>Definition at line <a class="el" href="newfiledlg_8h-source.htm#l00067">67</a> of file <a class="el" href="newfiledlg_8h-source.htm">newfiledlg.h</a>.    </td>  </tr></table><a class="anchor" name="ga4" doxytag="newfiledlg.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&nbsp;&nbsp;&nbsp;-1          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Wrong parameters. <p>    </td>  </tr></table><a class="anchor" name="ga6" doxytag="newfiledlg.h::MAX_FILTER_LEN"></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 MAX_FILTER_LEN&nbsp;&nbsp;&nbsp;255          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The maximum length of filter string. <p><p>Definition at line <a class="el" href="newfiledlg_8h-source.htm#l00085">85</a> of file <a class="el" href="newfiledlg_8h-source.htm">newfiledlg.h</a>.    </td>  </tr></table><a class="anchor" name="ga7" doxytag="newfiledlg.h::MY_NAMEMAX"></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 MY_NAMEMAX&nbsp;&nbsp;&nbsp;127          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The maximum length of name. <p><p>Definition at line <a class="el" href="newfiledlg_8h-source.htm#l00091">91</a> of file <a class="el" href="newfiledlg_8h-source.htm">newfiledlg.h</a>.    </td>  </tr></table><a class="anchor" name="ga8" doxytag="newfiledlg.h::MY_PATHMAX"></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 MY_PATHMAX&nbsp;&nbsp;&nbsp;255          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The maximum length of path. <p><p>Definition at line <a class="el" href="newfiledlg_8h-source.htm#l00097">97</a> of file <a class="el" href="newfiledlg_8h-source.htm">newfiledlg.h</a>.    </td>  </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="newfiledlg.h::NEWFILEDLGDATA"></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__NEWFILEDLGDATA.htm">_NEWFILEDLGDATA</a>  <a class="el" href="struct__NEWFILEDLGDATA.htm">NEWFILEDLGDATA</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The file dialog box structure used by <em>ShowOpenDialog</em>. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__newfiledlg.htm#ga2">ShowOpenDialog</a>. </dd></dl>    </td>  </tr></table><a class="anchor" name="ga1" doxytag="newfiledlg.h::PNEWFILEDLGDATA"></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__NEWFILEDLGDATA.htm">NEWFILEDLGDATA</a>* <a class="el" href="struct__NEWFILEDLGDATA.htm">PNEWFILEDLGDATA</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Data type of pointer to a NEWFILEDLGDATA <p>Definition at line <a class="el" href="newfiledlg_8h-source.htm#l00121">121</a> of file <a class="el" href="newfiledlg_8h-source.htm">newfiledlg.h</a>.    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga2" doxytag="newfiledlg.h::ShowOpenDialog"></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">int ShowOpenDialog           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a>&nbsp;</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&nbsp;</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&nbsp;</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&nbsp;</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&nbsp;</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__NEWFILEDLGDATA.htm">PNEWFILEDLGDATA</a>&nbsp;</td>          <td class="mdname" nowrap> <em>pnfdd</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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>&nbsp;</td><td>The hosting main window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>lx</em>&nbsp;</td><td>lx,ty,w,h: The default position and size of the dialog box. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>ty</em>&nbsp;</td><td>lx,ty,w,h: The default position and size of the dialog box. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>lx,ty,w,h: The default position and size of the dialog box. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>h</em>&nbsp;</td><td>lx,ty,w,h: The default position and size of the dialog box. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>pnfdd</em>&nbsp;</td><td>The pointer to the NEWFILEDLGDATA structure.</td></tr>  </table></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>&nbsp;</td><td>The user choosed a file and OK button clicked. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>IDCANCLE</em>&nbsp;</td><td>CANCEL button clicked.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__newfiledlg.htm#ga0">NEWFILEDLGDATA</a>, <a class="el" href="group__mywins__newfiledlg.htm#ga2">ShowOpenDialog</a> </dd></dl>    </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&nbsp;<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 + -