youDlg.cpp
资源名称:TitleBar.rar [点击查看]
上传用户:shixing_sh
上传日期:2021-10-02
资源大小:3629k
文件大小:2k
源码类别:
工具条
开发平台:
Visual C++
- // youDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "TitleBar.h"
- #include "youDlg.h"
- #include "TitleBarDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CyouDlg dialog
- CyouDlg::CyouDlg(CWnd* pParent /*=NULL*/)
- : CTitleBarDlg(pParent)
- {
- //{{AFX_DATA_INIT(CyouDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CyouDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CyouDlg)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CyouDlg, CDialog)
- //{{AFX_MSG_MAP(CyouDlg)
- ON_WM_NCLBUTTONDOWN()
- ON_WM_NCMOUSEMOVE()
- ON_WM_SYSCOMMAND()
- ON_WM_SIZE()
- ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CyouDlg message handlers
- void CyouDlg::OnButton5()
- {
- // TODO: Add your control notification handler code here
- CDialog::OnCancel();
- }
- void CyouDlg::OnNcLButtonDown(UINT nHitTest, CPoint point)
- {
- CTitleBarDlg::OnNcLButtonDown(nHitTest, point);
- }
- void CyouDlg::OnNcMouseMove(UINT nHitTest, CPoint point)
- {
- CTitleBarDlg::OnNcMouseMove(nHitTest, point);
- }
- void CyouDlg::OnSize(UINT nType, int cx, int cy)
- {
- CTitleBarDlg::OnSize(nType, cx, cy);
- }
- void CyouDlg::OnSysCommand(UINT nID, LPARAM lParam)
- {
- CTitleBarDlg::OnSysCommand(nID, lParam);
- }