CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - GetClientRect
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
GUI Develop
Windows Kernel
WinSock-NDIS
Driver Develop
ADO-ODBC
GDI-Bitmap
CSharp
.net
Multimedia Develop
Communication
Shell api
ActiveX/DCOM/ATL
IME Develop
ISAPI-IE
Hook api
Screen saver
DirextX
Process-Thread
Console
File Operate
Printing program
Multi Monitor
DNA
Other
Search - GetClientRect - List
[
CSharp
]
DivString
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.