文件名称:OwnerDraw_src_demo
- 所属分类:
- GDI/图象编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 22kb
- 下载次数:
- 0次
- 提 供 者:
- testt*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一般情況下,按鈕的繪製工作是由相同完成的,但是有時我們覺得系統繪製的效果太單調,想使自己的按鈕與眾不同,這時你可以選中控件的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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ODM\AssemblyInfo.vb
...\bin
...\...\ODM.dll
...\obj
...\...\Debug
...\...\.....\temp
...\...\.....\TempPE
...\...\Release
...\...\.......\temp
...\...\.......\TempPE
...\ODM.sln
...\ODM.vbproj
...\ODM.vbproj.user
...\OwnerDrawMenu.vb
...\Test
...\....\AssemblyInfo.vb
...\....\bin
...\....\...\new.ico
...\....\...\ODM.dll
...\....\...\open.ico
...\....\...\Test.exe
...\....\Form1.resx
...\....\Form1.vb
...\....\new.ico
...\....\obj
...\....\...\Debug
...\....\...\.....\temp
...\....\...\.....\TempPE
...\....\open.ico
...\....\Test.vbproj
...\....\Test.vbproj.user
ODM
...\bin
...\...\ODM.dll
...\obj
...\...\Debug
...\...\.....\temp
...\...\.....\TempPE
...\...\Release
...\...\.......\temp
...\...\.......\TempPE
...\ODM.sln
...\ODM.vbproj
...\ODM.vbproj.user
...\OwnerDrawMenu.vb
...\Test
...\....\AssemblyInfo.vb
...\....\bin
...\....\...\new.ico
...\....\...\ODM.dll
...\....\...\open.ico
...\....\...\Test.exe
...\....\Form1.resx
...\....\Form1.vb
...\....\new.ico
...\....\obj
...\....\...\Debug
...\....\...\.....\temp
...\....\...\.....\TempPE
...\....\open.ico
...\....\Test.vbproj
...\....\Test.vbproj.user
ODM