File indexing completed on 2025-01-18 09:53:47
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_WINAPI_SHOW_WINDOW_HPP_INCLUDED_
0009 #define BOOST_WINAPI_SHOW_WINDOW_HPP_INCLUDED_
0010
0011 #include <boost/winapi/basic_types.hpp>
0012
0013 #ifdef BOOST_HAS_PRAGMA_ONCE
0014 #pragma once
0015 #endif
0016
0017 #if BOOST_WINAPI_PARTITION_DESKTOP
0018
0019 #include <boost/winapi/detail/header.hpp>
0020
0021 #if !defined( BOOST_USE_WINDOWS_H )
0022 extern "C" {
0023 BOOST_WINAPI_DETAIL_DECLARE_HANDLE(HWND);
0024
0025 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC ShowWindow(
0026 HWND hWnd,
0027 int nCmdShow);
0028
0029 BOOST_WINAPI_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC ShowWindowAsync(
0030 HWND hWnd,
0031 int nCmdShow);
0032 }
0033 #endif
0034
0035 namespace boost {
0036 namespace winapi {
0037
0038 typedef ::HWND HWND_;
0039 using ::ShowWindow;
0040 using ::ShowWindowAsync;
0041
0042 #if defined( BOOST_USE_WINDOWS_H ) && !defined( NOSHOWWINDOW )
0043
0044 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_HIDE_ = SW_HIDE;
0045 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWNORMAL_ = SW_SHOWNORMAL;
0046 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_NORMAL_ = SW_NORMAL;
0047 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWMINIMIZED_ = SW_SHOWMINIMIZED;
0048 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWMAXIMIZED_ = SW_SHOWMAXIMIZED;
0049 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_MAXIMIZE_ = SW_MAXIMIZE;
0050 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWNOACTIVATE_ = SW_SHOWNOACTIVATE;
0051 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOW_ = SW_SHOW;
0052 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_MINIMIZE_ = SW_MINIMIZE;
0053 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWMINNOACTIVE_ = SW_SHOWMINNOACTIVE;
0054 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWNA_ = SW_SHOWNA;
0055 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_RESTORE_ = SW_RESTORE;
0056 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWDEFAULT_ = SW_SHOWDEFAULT;
0057 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_FORCEMINIMIZE_ = SW_FORCEMINIMIZE;
0058 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_MAX_ = SW_MAX;
0059 BOOST_CONSTEXPR_OR_CONST DWORD_ HIDE_WINDOW_ = HIDE_WINDOW;
0060 BOOST_CONSTEXPR_OR_CONST DWORD_ SHOW_OPENWINDOW_ = SHOW_OPENWINDOW;
0061 BOOST_CONSTEXPR_OR_CONST DWORD_ SHOW_ICONWINDOW_ = SHOW_ICONWINDOW;
0062 BOOST_CONSTEXPR_OR_CONST DWORD_ SHOW_FULLSCREEN_ = SHOW_FULLSCREEN;
0063 BOOST_CONSTEXPR_OR_CONST DWORD_ SHOW_OPENNOACTIVATE_ = SHOW_OPENNOACTIVATE;
0064 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_PARENTCLOSING_ = SW_PARENTCLOSING;
0065 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_OTHERZOOM_ = SW_OTHERZOOM;
0066 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_PARENTOPENING_ = SW_PARENTOPENING;
0067 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_OTHERUNZOOM_ = SW_OTHERUNZOOM;
0068
0069 #else
0070
0071 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_HIDE_ = 0;
0072 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWNORMAL_ = 1;
0073 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_NORMAL_ = 1;
0074 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWMINIMIZED_ = 2;
0075 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWMAXIMIZED_ = 3;
0076 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_MAXIMIZE_ = 3;
0077 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWNOACTIVATE_ = 4;
0078 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOW_ = 5;
0079 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_MINIMIZE_ = 6;
0080 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWMINNOACTIVE_ = 7;
0081 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWNA_ = 8;
0082 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_RESTORE_ = 9;
0083 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_SHOWDEFAULT_ = 10;
0084 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_FORCEMINIMIZE_ = 11;
0085 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_MAX_ = 11;
0086 BOOST_CONSTEXPR_OR_CONST DWORD_ HIDE_WINDOW_ = 0;
0087 BOOST_CONSTEXPR_OR_CONST DWORD_ SHOW_OPENWINDOW_ = 1;
0088 BOOST_CONSTEXPR_OR_CONST DWORD_ SHOW_ICONWINDOW_ = 2;
0089 BOOST_CONSTEXPR_OR_CONST DWORD_ SHOW_FULLSCREEN_ = 3;
0090 BOOST_CONSTEXPR_OR_CONST DWORD_ SHOW_OPENNOACTIVATE_ = 4;
0091 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_PARENTCLOSING_ = 1;
0092 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_OTHERZOOM_ = 2;
0093 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_PARENTOPENING_ = 3;
0094 BOOST_CONSTEXPR_OR_CONST DWORD_ SW_OTHERUNZOOM_ = 4;
0095
0096 #endif
0097
0098 }
0099 }
0100
0101 #include <boost/winapi/detail/footer.hpp>
0102
0103 #endif
0104
0105 #endif