LeftBar.cpp
资源名称:DrawSys.zip [点击查看]
上传用户:mosfetic
上传日期:2022-06-16
资源大小:4612k
文件大小:1k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- // LeftBar.cpp : implementation file
- //
- #include "stdafx.h"
- #include "DrawSys.h"
- #include "LeftBar.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CLeftBar
- CLeftBar::CLeftBar()
- {
- }
- CLeftBar::~CLeftBar()
- {
- }
- BEGIN_MESSAGE_MAP(CLeftBar, CDialogBar)
- //{{AFX_MSG_MAP(CLeftBar)
- ON_WM_SIZE()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CLeftBar message handlers
- void CLeftBar::OnSize(UINT nType, int cx, int cy)
- {
- CDialogBar::OnSize(nType, cx, cy);
- // TODO: Add your message handler code here
- CWnd* pWnd = NULL;
- CRect rcBar;
- pWnd = GetDlgItem(ID_SHAPETREE_IN_LEFTBAR);
- if(pWnd)
- {
- GetClientRect(&rcBar);
- rcBar.DeflateRect(5, 30, 5, 0);
- pWnd->MoveWindow(&rcBar);
- }
- }