Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - GetClientRect
Search - GetClientRect - List
DL : 0
用指定的符号分割字符串,可以作为程序的资料,提高编程效率!-void CDivStringDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this) // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0) // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON) int cyIcon = GetSystemMetrics(SM_CYICON) CRect rect GetClientRect(&rect) int x = (rect.Width()- cxIcon+ 1)/2 int y = (rect.Height()- cyIcon+ 1)/2 // Draw the icon dc.DrawIcon(x, y, m_hIcon) } else { CDialog::OnPaint() } }
Date : 2026-01-08 Size : 1.78mb User : 小王
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.