Skip to content

Commit 20d5eeb

Browse files
committed
all: Allow to build MPEG Header Info winapp
1 parent 4363e01 commit 20d5eeb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2075
-1638
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
cmake -B ${{ steps.strings.outputs.build-output-dir }}
5353
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
5454
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
55-
-DMPA_BUILD_WITHOUT_ATL=True
55+
-DSA_MPA_BUILD_WITHOUT_ATL=True
5656
-S ${{ github.workspace }}
5757
5858
- name: Build

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,3 +399,6 @@ FodyWeavers.xsd
399399

400400
# CMake artefacts
401401
out/
402+
403+
# Resource compiler artefacts
404+
RC[a-z0-9]*

AboutDlg.cpp

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
// AboutDlg.cpp : implementation file
2-
//
32

43
#include "stdafx.h"
5-
#include "MPEGAudioInfo.h"
64
#include "AboutDlg.h"
75

6+
IMPLEMENT_DYNAMIC(AboutDlg, CBaseDlg)
87

9-
// CAboutDlg dialog
8+
AboutDlg::AboutDlg(CWnd* parent)
9+
: CBaseDlg(AboutDlg::IDD, parent),
10+
m_hIcon(AfxGetApp()->LoadIcon(SRC_IDI_APP_MAIN)) {}
1011

11-
IMPLEMENT_DYNAMIC(CAboutDlg, CDialog)
12-
CAboutDlg::CAboutDlg(CWnd* pParent /*=NULL*/)
13-
: CDialog(CAboutDlg::IDD, pParent)
14-
{
15-
}
12+
AboutDlg::~AboutDlg() {}
1613

17-
CAboutDlg::~CAboutDlg()
18-
{
19-
}
14+
BOOL AboutDlg::OnInitDialog() {
15+
BOOL rc = __super::OnInitDialog();
16+
if (!rc) return rc;
17+
18+
// Set the icon for this dialog.
19+
SetIcon(m_hIcon, TRUE);
20+
SetIcon(m_hIcon, FALSE);
2021

21-
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
22-
{
23-
CDialog::DoDataExchange(pDX);
22+
return TRUE;
2423
}
2524

25+
void AboutDlg::DoDataExchange(CDataExchange* pDX) {
26+
__super::DoDataExchange(pDX);
27+
}
2628

27-
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
29+
BEGIN_MESSAGE_MAP(AboutDlg, CBaseDlg)
2830
END_MESSAGE_MAP()
29-
30-
31-
// CAboutDlg message handlers

AboutDlg.h

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
1-
#pragma once
1+
// GNU LESSER GENERAL PUBLIC LICENSE
2+
// Version 3, 29 June 2007
3+
//
4+
// Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5+
//
6+
// Everyone is permitted to copy and distribute verbatim copies of this license
7+
// document, but changing it is not allowed.
8+
//
9+
// This version of the GNU Lesser General Public License incorporates the terms
10+
// and conditions of version 3 of the GNU General Public License, supplemented
11+
// by the additional permissions listed below.
212

13+
#ifndef MPA_HEADER_INFO_ABOUT_DLG_H_
14+
#define MPA_HEADER_INFO_ABOUT_DLG_H_
315

4-
// CAboutDlg dialog
16+
#include "base_dlg.h"
17+
#include "resource.h"
518

6-
class CAboutDlg : public CDialog
7-
{
8-
DECLARE_DYNAMIC(CAboutDlg)
19+
// About dialog.
20+
class AboutDlg : public CBaseDlg {
21+
DECLARE_DYNAMIC(AboutDlg)
922

10-
public:
11-
CAboutDlg(CWnd* pParent = NULL); // standard constructor
12-
virtual ~CAboutDlg();
23+
public:
24+
explicit AboutDlg(CWnd* parent = nullptr);
25+
virtual ~AboutDlg();
1326

14-
// Dialog Data
15-
enum { IDD = IDD_ABOUTBOX };
27+
// Dialog Data
28+
enum { IDD = IDD_ABOUTBOX };
1629

17-
protected:
18-
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
30+
protected:
31+
void DoDataExchange(CDataExchange* de) override;
32+
BOOL OnInitDialog() override;
1933

20-
DECLARE_MESSAGE_MAP()
34+
DECLARE_MESSAGE_MAP()
35+
36+
private:
37+
HICON m_hIcon;
2138
};
39+
40+
#endif // !MPA_HEADER_INFO_ABOUT_DLG_H_

0 commit comments

Comments
 (0)