VC 窗體非客戶區的繪制 OnNcPaint(UINT message, WPARAM wParam, LPARAM lParam) .
void CSkinAndLangDlg::OnNcPaint(UINT message, WPARAM wParam, LPARAM lParam)
{
HDC WindowDC = ::GetWindowDC(m_hWnd);
// //取得整個窗體矩形
RECT WindowRect;
GetWindowRect(&WindowRect);
OffsetRect(&WindowRect, -WindowRect.left, - WindowRect.top);
// //取得客戶區矩形,並從WINDOWDC中排除不予繪制
// RECT ClientRect;
// GetClientRect(&ClientRect);
// OffsetRect(&ClientRect, BorderLeftWidth, BorderTopHeight);
// ExcludeClipRect(WindowDC, ClientRect.left, ClientRect.top, ClientRect.right, ClientRect.bottom);
//窗體寬度和高度
// int width, height;
// width = WindowRect.right;
//