CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - ListBox WM_DRAWITEM
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 - ListBox WM_DRAWITEM - List
[
GDI-Bitmap
]
OwnerDraw_src_demo
DL : 0
一般情況下,按鈕的繪製工作是由相同完成的,但是有時我們覺得系統繪製的效果太單調,想使自己的按鈕與眾不同,這時你可以選中控件的Owner draw屬性。選擇了這個屬性後,系統便不再繪製該控件,而是當需要顯示控件時,系統會發送WM_DRAWITEM消息給CButton類(對於SDK編程,消息通常是發給父窗口)。對於其他控件,如ListBox,系統在發送WM_DRAWITEM消息前,還發送WM_MEASUREITEM消息,主要是讓你設置ListBox中每個項目的高度-Under normal circumstances, the button mapping work is done by the same, but sometimes we feel that the effect of rendering the system is too monotonous and want to make your own buttons different, then you can select the control of the Owner draw attributes. Chose this attribute, the system will no longer draw the control, but when the need to show control, the system sends a message to CButton class WM_DRAWITEM (for SDK programming, the message is usually sent to the parent window). For other controls, such as the ListBox, the system sends the message WM_DRAWITEM ago, was also sent WM_MEASUREITEM message is designed to allow you to set the height of each item in the ListBox
Date
: 2025-12-28
Size
: 22kb
User
:
testtestwu
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.