📄 eqdlg.cpp
字号:
// EqDlg.cpp : implementation file
//
#include "stdafx.h"
#include "RichiMP3.h"
#include "EqDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEqDlg dialog
CEqDlg::CEqDlg(CWnd* pParent /*=NULL*/)
: CBitmapDialog(CEqDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CEqDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CEqDlg::DoDataExchange(CDataExchange* pDX)
{
CBitmapDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CEqDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CEqDlg, CBitmapDialog)
//{{AFX_MSG_MAP(CEqDlg)
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
ON_BN_CLICKED(IDC_BUTTON_CLOSE, OnButtonClose)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CEqDlg message handlers
void CEqDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CRect rcCaption;
GetClientRect(&rcCaption);
rcCaption = CRect(rcCaption.left+14,rcCaption.top,rcCaption.right-25,rcCaption.bottom);
//ScreenToClient(&rcCaption);
/* if(rc3.PtInRect(point))
{
return;
}
if(rc4.PtInRect(point))
{
return;
}
if(rc2.PtInRect(point))
{
return;
}
if(rc1.PtInRect(point))
{
return;
//PostMessage(WM_SYSCOMMAND,SC_MINIMIZE);
}*/
if(rcCaption.PtInRect(point))
{
SendMessage(WM_NCLBUTTONDOWN,HTCAPTION,MAKELPARAM(point.x,point.y));
}
CBitmapDialog::OnLButtonDown(nFlags, point);
}
void CEqDlg::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CBitmapDialog::OnLButtonUp(nFlags, point);
}
BOOL CEqDlg::OnInitDialog()
{
CBitmapDialog::OnInitDialog();
SetBitmap(IDB_BITMAP1);
m_eq.CreateWndw(IDS_TONAL,this);
// TODO: Add extra initialization here
VERIFY(btnClose.SubclassDlgItem(IDC_BUTTON_CLOSE, this));
VERIFY(btnClose.LoadBitmaps(_T("closeu"), _T("closed"), _T("closef")));
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CEqDlg::OnButtonClose()
{
// TODO: Add your control notification handler code here
PostMessage(WM_SYSCOMMAND,SC_CLOSE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -