_T("宋体"), (FONTENUMPROC) EnumFontFamProc, 0) == 0) ?
_T("宋体") : _T("Tahoma");
dc.DeleteDC();
}
CCoolBar::~CCoolBar()
{
}
BEGIN_MESSAGE_MAP(CCoolBar, baseCCoolBar)
//{{AFX_MSG_MAP(CCoolBar)
ON_WM_NCLBUTTONUP()
ON_WM_NCHITTEST()
//}}AFX_MSG_MAP
ON_MESSAGE(WM_SETTEXT, OnSetText)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////
// CCoolBar message handlers
BOOL CCoolBar::Create(LPCTSTR lpszWindowName, CWnd* pParentWnd,
CSize sizeDefault, BOOL bHasGripper,
UINT nID, DWORD dwStyle)
{
ASSERT_VALID(pParentWnd);
m_hNotifyWnd = pParentWnd->m_hWnd;
return baseCCoolBar::Create(lpszWindowName, pParentWnd, sizeDefault, bHasGripper, nID, dwStyle);
}
BOOL CCoolBar::Create(LPCTSTR lpszWindowName,
CWnd* pParentWnd, UINT nID,
DWORD dwStyle)
{
ASSERT_VALID(pParentWnd);
m_hNotifyWnd = pParentWnd->m_hWnd;
return baseCCoolBar::Create(lpszWindowName, pParentWnd, nID, dwStyle);
}
/////////////////////////////////////////////////////////////////////////
// Mouse Handling
//
void CCoolBar::OnNcLButtonUp(UINT nHitTest, CPoint point)
{
if (nHitTest == HTCLOSE)
m_pDockSite->ShowControlBar(this, FALSE, FALSE); // hide
baseCCoolBar::OnNcLButtonUp(nHitTest, point);
}
#ifndef COLOR_GRADIENTACTIVECAPTION
#define COLOR_GRADIENTACTIVECAPTION27
#define COLOR_GRADIENTINACTIVECAPTION 28
#define SPI_GETGRADIENTCAPTIONS0x1008
#endif
void CCoolBar::NcCalcClient(LPRECT pRc, UINT nDockBarID)
{
CRect rcBar(pRc); // save the bar rect
// subtract edges
baseCCoolBar::NcCalcClient(pRc, nDockBarID);
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-36846-3.html
不会因为一次战役而产生巨大偏移
发廊妹等国家严禁的行为
何来公信力
请问还能经济发展吗
如果连自己的领海都能让人随便入侵