13 #pragma managed( push, off ) 58 ::GetWindowRect(
m_hWnd, &sWindowRect );
61 int nLeft = sWindowRect.left;
62 int nTop = sWindowRect.top;
63 int nRight = sWindowRect.right;
64 int nBottom = sWindowRect.bottom;
68 if ( 0 != ::PtInRect( &sRect, sPoint ) ) {
79 if ( 0 != ::PtInRect( &sRect, sPoint ) ) {
90 if ( 0 != ::PtInRect( &sRect, sPoint ) ) {
92 result = HTBOTTOMLEFT;
101 if ( 0 != ::PtInRect( &sRect, sPoint ) ) {
103 result = HTBOTTOMRIGHT;
111 RECT sRect = { nLeft, nTop, ( nLeft +
BORDER_THICK ), nBottom };
112 if ( 0 != ::PtInRect( &sRect, sPoint ) ) {
122 RECT sRect = { nLeft, nTop, nRight, ( nTop +
BORDER_THICK ) };
123 if ( 0 != ::PtInRect( &sRect, sPoint ) ) {
133 RECT sRect = { ( nRight -
BORDER_THICK ), nTop, nRight, nBottom };
134 if ( 0 != ::PtInRect( &sRect, sPoint ) ) {
144 RECT sRect = { nLeft, ( nBottom -
BORDER_THICK ), nRight, nBottom };
145 if ( 0 != ::PtInRect( &sRect, sPoint ) ) {
158 if ( 0 != ::PtInRect( &sRect, sPoint ) ) {
186 LPMINMAXINFO lpMinMaxInfo =
reinterpret_cast< LPMINMAXINFO
>(
m_lParam );
187 lpMinMaxInfo->ptMinTrackSize.x = min( lpMinMaxInfo->ptMaxTrackSize.x, nMinWidth );
188 lpMinMaxInfo->ptMinTrackSize.y = min( lpMinMaxInfo->ptMaxTrackSize.y, nMinHeight );
207 else if ( rcConfig.ResumeWindowPosition(
m_hWnd ) ) {
209 if ( rcConfig.ResumeShowWindow(
m_hWnd ) ) {
211 ::SendMessageW(
m_hWnd, WM_SIZE, 0, 0 );
236 else if ( !rcConfig.SaveWindowPosition(
m_hWnd ) ) {
241 else if ( !rcConfig.SaveShowWindow(
m_hWnd ) ) {
255 #pragma managed( pop ) virtual int GetMinWidth() noexcept override
最小水平サイズ取得関数
virtual HWND & GetHandle() noexcept
ウィンドウハンドル取得関数
static int const BORDER_THICK
ボーダー太さ
virtual LRESULT WmNcHitTest() noexcept override
各種メッセージ処理関数
virtual bool ResumeConfig(CJsonConfig &rcConfig) noexcept override
ウィンドウ構成情報復元関数
virtual LRESULT WmGetMinMaxInfo() noexcept override
CWndTitleBar m_cTitleBar
タイトルバー
CWndFloating() noexcept
コンストラクタ
virtual LRESULT WmNcHitTest() noexcept
virtual bool ResumeConfig(CJsonConfig &rcConfig) noexcept override
ウィンドウ構成情報復元関数
virtual int GetMinHeight() noexcept override
最小垂直サイズ取得関数
virtual bool SaveConfig(CJsonConfig &rcConfig) noexcept override
ウィンドウ構成情報保存関数
virtual bool SaveConfig(CJsonConfig &rcConfig) noexcept override
ウィンドウ構成情報保存関数