整理
This commit is contained in:
61
include/boost/process/v1/windows.hpp
Normal file
61
include/boost/process/v1/windows.hpp
Normal file
@@ -0,0 +1,61 @@
|
||||
// Copyright (c) 2016 Klemens D. Morgenstern
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
#ifndef BOOST_PROCESS_WINDOWS_HPP_
|
||||
#define BOOST_PROCESS_WINDOWS_HPP_
|
||||
|
||||
#include <boost/process/v1/detail/windows/show_window.hpp>
|
||||
|
||||
/** \file boost/process/windows.hpp
|
||||
*
|
||||
* Header which provides the windows extensions.
|
||||
|
||||
\xmlonly
|
||||
<programlisting>
|
||||
namespace boost {
|
||||
namespace process { BOOST_PROCESS_V1_INLINE namespace v1 {
|
||||
namespace windows {
|
||||
<emphasis>unspecified</emphasis> <globalname alt="boost::process::v1::windows::hide">hide</globalname>;
|
||||
<emphasis>unspecified</emphasis> <globalname alt="boost::process::v1::windows::maximized">maximized</globalname>;
|
||||
<emphasis>unspecified</emphasis> <globalname alt="boost::process::v1::windows::minimized">minimized</globalname>;
|
||||
<emphasis>unspecified</emphasis> <globalname alt="boost::process::v1::windows::minimized_not_active">minimized_not_active</globalname>;
|
||||
<emphasis>unspecified</emphasis> <globalname alt="boost::process::v1::windows::not_active">not_active</globalname>;
|
||||
<emphasis>unspecified</emphasis> <globalname alt="boost::process::v1::windows::show">show</globalname>;
|
||||
<emphasis>unspecified</emphasis> <globalname alt="boost::process::v1::windows::show_normal">show_normal</globalname>;
|
||||
<emphasis>unspecified</emphasis> <globalname alt="boost::process::v1::windows::create_no_window">create_no_window</globalname>;
|
||||
}
|
||||
}
|
||||
}
|
||||
</programlisting>
|
||||
* \endxmlonly
|
||||
* \warning Only available on windows.
|
||||
* See the parameter documentation of [ShowWindow](https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548.aspx) for more details.
|
||||
*/
|
||||
|
||||
namespace boost { namespace process { BOOST_PROCESS_V1_INLINE namespace v1 {
|
||||
|
||||
///Namespace containing the windows extensions.
|
||||
namespace windows {
|
||||
|
||||
///Hides the window and activates another window.
|
||||
constexpr ::boost::process::v1::detail::windows::show_window<::boost::winapi::SW_HIDE_ > hide;
|
||||
///Activates the window and displays it as a maximized window.
|
||||
constexpr ::boost::process::v1::detail::windows::show_window<::boost::winapi::SW_SHOWMAXIMIZED_ > maximized;
|
||||
///Activates the window and displays it as a minimized window.
|
||||
constexpr ::boost::process::v1::detail::windows::show_window<::boost::winapi::SW_SHOWMINIMIZED_ > minimized;
|
||||
///Displays the window as a minimized window. This value is similar to `minimized`, except the window is not activated.
|
||||
constexpr ::boost::process::v1::detail::windows::show_window<::boost::winapi::SW_SHOWMINNOACTIVE_> minimized_not_active;
|
||||
///Displays a window in its most recent size and position. This value is similar to show_normal`, except that the window is not activated.
|
||||
constexpr ::boost::process::v1::detail::windows::show_window<::boost::winapi::SW_SHOWNOACTIVATE_ > not_active;
|
||||
///Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
|
||||
constexpr ::boost::process::v1::detail::windows::show_window<::boost::winapi::SW_SHOWNORMAL_ > show;
|
||||
///Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
|
||||
constexpr ::boost::process::v1::detail::windows::show_window<::boost::winapi::SW_SHOWNORMAL_ > show_normal;
|
||||
|
||||
///Adds the [CREATE_NO_WINDOW](https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863(v=vs.85).aspx) flag.
|
||||
constexpr ::boost::process::v1::detail::windows::create_no_window_ create_no_window;
|
||||
|
||||
}}}}
|
||||
|
||||
#endif /* BOOST_PROCESS_WINDOWS_HPP_ */
|
||||
Reference in New Issue
Block a user