在drawitem事件里自己画一个按钮好了,pb的按钮属性很少;件一个函数drawitemimage(unsignedlong childid,long drawitemstruct)
{
drawitemstruct item
copymemory(item,drawitemstruct,48)
inv_ButtonPaper.of_setdrawdc(item.hdc,pixelstounits(item.rcitem.right,xpixelstounits!),pixelstounits(item.rcitem.bottom,ypixelstounits!))
inv_ButtonPaper.draw()
string str
str=space(100)
GetWindowText(item.hwnditem,str,100)
setbkmode(item.hdc,1)
drawtext(item.hdc,str,len(str),item.rcitem,37)
if item.hwnditem=handle(w_main1.cb_title) then
return
end if
if item.itemstate=17 then
DrawEdge(item.hdc,item.rcitem,10,15)
return
end if
if item.itemstate=16 then
DrawEdge(item.hdc,item.rcitem,5,15)
return
end if
DrawEdge(item.hdc,item.rcitem,5,15)