void CMyQQDlg::OnNcMouseMove(UINT nHitTest, CPoint point)
{
CDialog::OnNcMouseMove(nHitTest, point);
#if 1
CRect tempIni,tempMin,tempMax,ClientRect;
CDC* pWindowDC = GetWindowDC();
CDC memDC;
memDC.CreateCompatibleDC(pWindowDC);
BITMAPINFO bInfo;
CBitmap LeftLine;
int x,y;
GetWindowRect(ClientRect);
// tempIni.CopyRect(CRect(m_IniRect.left+ ClientRect.left,ClientRect.top+m_IniRect.top,m_IniRect.right+m_IniRect.left+ ClientRect.left,m_IniRect.bottom+m_IniRect.top+ClientRect.top));
// tempMin.CopyRect(CRect(m_MinRect.left+ ClientRect.left,ClientRect.top+m_MinRect.top,m_MinRect.right+m_MinRect.left+ ClientRect.left,m_MinRect.bottom+m_MinRect.top+ClientRect.top));
// tempMax.CopyRect(CRect(m_MaxRect.left+ ClientRect.left,ClientRect.top+m_MaxRect.top,m_MaxRect.right+m_MaxRect.left+ ClientRect.left,m_MaxRect.bottom+m_MaxRect.top+ClientRect.top));
MytempClose.CopyRect(CRect(m_CloseRect.left+ ClientRect.left,ClientRect.top+m_CloseRect.top+5,m_CloseRect.right+m_CloseRect.left+ ClientRect.left,m_CloseRect.bottom+m_CloseRect.top+ClientRect.top));
if (MytempClose.PtInRect(point))
{
LeftLine.LoadBitmap(IDB_BITMAP2);
LeftLine.GetObject(sizeof(bInfo),&bInfo);
x = bInfo.bmiHeader.biWidth;
y = bInfo.bmiHeader.biHeight;
memDC.SelectObject(&LeftLine);
pWindowDC->StretchBlt(m_CloseRect.left,m_CloseRect.top+5,m_CloseRect.right,m_CloseRect.bottom,&memDC,0,0,x,y,SRCCOPY);
//m_IsDrawForm = FALSE;
//m_ButtonState = bsClose;//////记录当前光标位置所在的按钮
LeftLine.DeleteObject();
}
else
{
LeftLine.LoadBitmap(IDB_BITMAP1);
LeftLine.GetObject(sizeof(bInfo),&bInfo);
x = bInfo.bmiHeader.biWidth;
y = bInfo.bmiHeader.biHeight;
memDC.SelectObject(&LeftLine);
pWindowDC->StretchBlt(m_CloseRect.left,m_CloseRect.top+5,m_CloseRect.right,m_CloseRect.bottom,&memDC,0,0,x,y,SRCCOPY);
//m_IsDrawForm = FALSE;
//m_ButtonState = bsClose;//////记录当前光标位置所在的按钮
LeftLine.DeleteObject();
//DrawForm();
}
#endif
你这个是想要处理什么?
想要做什么功能哪????这才是关键。。