【www.bbyears.com--安卓教程】
asp教程.net 如何更改窗体边框颜色
function HighlightWindow(pl_hwnd: Hwnd;cor:tColor):bool;
var
ll_hDC : HDC;
lu_RECT : TRECT;
ll_Pen : HPen;
begin
GetWindowRect(pl_hWnd,lu_RECT);
ll_hDC := GetWindowDC(pl_hWnd);
ll_Pen := CreatePen(ps教程_solid, 6, cor);
SelectObject(ll_hDC, ll_Pen);
SelectObject(ll_hDC, GetStockObject(HOLLOW_BRUSH));
Rectangle(ll_hDC, 0, 0, lu_RECT.Right - lu_RECT.Left, lu_RECT.Bottom - lu_RECT.Top);
DeleteObject(ll_Pen);
ReleaseDC(pl_hWnd, ll_hDC);
result:=true;
end;
//方法二
在Page_Load里注册按钮的事件属性
Button2.Attributes.Add( "onmouseover ", "this.style.borderLeftColor= "#dddddd ";this.style.borderTopColor= "#dddddd " ");
Button2.Attributes.Add( "onmouseout ", "this.style.borderLeftColor= "black ";this.style.borderTopColor= "black " ");
%>