-
Notifications
You must be signed in to change notification settings - Fork 803
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) 2024 Takashi Sawanaka | ||
// SPDX-License-Identifier: BSL-1.0 | ||
/** | ||
* @file TitleBarHelper.cpp | ||
* | ||
* @brief Implementation of the CTitleBarHelper class | ||
*/ | ||
|
||
#include "StdAfx.h" | ||
#include "TitleBarHelper.h" | ||
|
||
void CTitleBarHelper::DrawIcon(CDC& dc) | ||
{ | ||
} | ||
|
||
void CTitleBarHelper::DrawButtons(CDC& dc) | ||
{ | ||
} | ||
|
||
CRect CTitleBarHelper::GetIconRect() | ||
{ | ||
return CRect{}; | ||
} | ||
|
||
CRect CTitleBarHelper::GetButtonsRect() | ||
{ | ||
return CRect{}; | ||
} | ||
|
||
void CTitleBarHelper::Update(CSize size, bool maxmized) | ||
{ | ||
} | ||
|
||
int CTitleBarHelper::HitTest(CPoint pt) | ||
{ | ||
return HTTOP; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @file TitleBarHelper.h | ||
* | ||
* @brief Declaration file for CTitleBarHelper | ||
* | ||
*/ | ||
#pragma once | ||
|
||
#include <afxwin.h> | ||
#include <afxext.h> | ||
#include <vector> | ||
|
||
class CTitleBarHelper { | ||
public: | ||
CTitleBarHelper() {} | ||
void DrawIcon(CDC& dc); | ||
void DrawButtons(CDC& dc); | ||
CRect GetIconRect(); | ||
CRect GetButtonsRect(); | ||
void Update(CSize size, bool maxmized); | ||
int HitTest(CPoint pt); | ||
|
||
private: | ||
CSize m_size; | ||
int m_iconSize; | ||
}; |