Made Show() HWND parameters optional

pull/30/head
David Hall 2019-01-14 14:44:10 -07:00
parent fbd6873fe4
commit c91a9fae67
1 changed files with 5 additions and 5 deletions

View File

@ -238,7 +238,7 @@ namespace Vanara.PInvoke
/// HRESULT_FROM_WIN32(ERROR_CANCELLED) = The user closed the window by canceling the operation.
/// </returns>
[PreserveSig]
new HRESULT Show(HWND parent);
new HRESULT Show([Optional] HWND parent);
/// <summary>Sets the file types that the dialog can open or save.</summary>
/// <param name="cFileTypes">The number of elements in the array specified by rgFilterSpec.</param>
@ -379,7 +379,7 @@ namespace Vanara.PInvoke
/// HRESULT_FROM_WIN32(ERROR_CANCELLED) = The user closed the window by canceling the operation.
/// </returns>
[PreserveSig]
new HRESULT Show(HWND parent);
new HRESULT Show([Optional] HWND parent);
/// <summary>Sets the file types that the dialog can open or save.</summary>
/// <param name="cFileTypes">The number of elements in the array specified by rgFilterSpec.</param>
@ -814,7 +814,7 @@ namespace Vanara.PInvoke
/// HRESULT_FROM_WIN32(ERROR_CANCELLED) = The user closed the window by canceling the operation.
/// </returns>
[PreserveSig]
new HRESULT Show(HWND parent);
new HRESULT Show([Optional] HWND parent);
/// <summary>Sets the file types that the dialog can open or save.</summary>
/// <param name="cFileTypes">The number of elements in the array specified by rgFilterSpec.</param>
@ -1171,7 +1171,7 @@ namespace Vanara.PInvoke
/// HRESULT_FROM_WIN32(ERROR_CANCELLED) = The user closed the window by canceling the operation.
/// </returns>
[PreserveSig]
new HRESULT Show(HWND parent);
new HRESULT Show([Optional] HWND parent);
/// <summary>Sets the file types that the dialog can open or save.</summary>
/// <param name="cFileTypes">The number of elements in the array specified by rgFilterSpec.</param>
@ -1343,7 +1343,7 @@ namespace Vanara.PInvoke
/// HRESULT_FROM_WIN32(ERROR_CANCELLED) = The user closed the window by cancelling the operation.
/// </returns>
[PreserveSig]
HRESULT Show(HWND parent);
HRESULT Show([Optional] HWND parent);
}
/// <summary>Used generically to filter elements.</summary>