//創建透明畫刷
CClientDC dc(this);
//使用(HBRUSH)GetStockObject可以返回空畫刷句柄,但CBrush
//無法通過畫刷句柄構造,可通過給其靜態成員函數FromHandle傳遞HBRUSH
//句柄獲得CBrush指針
CBrush *pBrush=CBrush::FromHandle((HBRUSH)GetStockObject(NULL_BRUSH));
CBrush *pOldBrush=dc.SelectObject(pBrush);
dc.Rectangle(CRect(m_ptOrigin,point));
dc.SelectObject(pOldBrush);