| 1 | #pragma once |
| 2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 3 | |
| 4 | |
| 5 | #ifdef __cplusplus |
| 6 | extern "C" { |
| 7 | #endif |
| 8 | |
| 9 | /******************************************************************** |
| 10 | WnduLoadRichEditFromFile - Attach a richedit control to a RTF file. |
| 11 | |
| 12 | *******************************************************************/ |
| 13 | HRESULT DAPI WnduLoadRichEditFromFile( |
| 14 | __in HWND hWnd, |
| 15 | __in_z LPCWSTR wzFileName, |
| 16 | __in HMODULE hModule |
| 17 | ); |
| 18 | |
| 19 | /******************************************************************** |
| 20 | WnduLoadRichEditFromResource - Attach a richedit control to resource data. |
| 21 | |
| 22 | *******************************************************************/ |
| 23 | HRESULT DAPI WnduLoadRichEditFromResource( |
| 24 | __in HWND hWnd, |
| 25 | __in_z LPCSTR szResourceName, |
| 26 | __in HMODULE hModule |
| 27 | ); |
| 28 | |
| 29 | /******************************************************************** |
| 30 | WnduGetControlText - gets the text of a control. |
| 31 | |
| 32 | *******************************************************************/ |
| 33 | HRESULT DAPI WnduGetControlText( |
| 34 | __in HWND hWnd, |
| 35 | __inout_z LPWSTR* psczText |
| 36 | ); |
| 37 | |
| 38 | /******************************************************************** |
| 39 | WnduShowOpenFileDialog - shows the system dialog to select a file for opening. |
| 40 | |
| 41 | *******************************************************************/ |
| 42 | HRESULT DAPI WnduShowOpenFileDialog( |
| 43 | __in_opt HWND hwndParent, |
| 44 | __in BOOL fForcePathExists, |
| 45 | __in BOOL fForceFileExists, |
| 46 | __in_opt LPCWSTR wzTitle, |
| 47 | __in_opt COMDLG_FILTERSPEC* rgFilters, |
| 48 | __in DWORD cFilters, |
| 49 | __in DWORD dwDefaultFilter, |
| 50 | __in_opt LPCWSTR wzDefaultPath, |
| 51 | __inout LPWSTR* psczPath |
| 52 | ); |
| 53 | |
| 54 | /******************************************************************** |
| 55 | WnduShowOpenFolderDialog - shows the system dialog to select a folder. |
| 56 | |
| 57 | *******************************************************************/ |
| 58 | HRESULT DAPI WnduShowOpenFolderDialog( |
| 59 | __in_opt HWND hwndParent, |
| 60 | __in BOOL fForceFileSystem, |
| 61 | __in_opt LPCWSTR wzTitle, |
| 62 | __inout LPWSTR* psczPath |
| 63 | ); |
| 64 | |
| 65 | #ifdef __cplusplus |
| 66 | } |
| 67 | #endif |
| 68 |