if not sb_SuppressHoverBorder then
lr_Border
lr_Border
lr_Border
(this
lr_Border
(this
if flags < >
DrawEdge(GetDC(handle(this))
lr_Border
else
// Left Button Down
DrawEdge(GetDC(handle(this))
lr_Border
end if
end if
else
// 檢測鼠標是否滑出按鈕區域?
if (XPos <
this
ib_MouseCaptured = FALSE
ReleaseCapture()
in_State =
this
end if
end if
return
//
// *** end mousemove event ***
//
// *** begin lbuttondown event ***
//
rect lr_Border
if ib_MouseCaptured then
ib_MouseCaptured = FALSE
ReleaseCapture()
end if
in_State =
this
SetCapture(handle(this))
ib_MouseCaptured = TRUE
if not sb_SuppressHoverBorder then
lr_Border
lr_Border
lr_Border
(this
lr_Border
(this
[
From:http://tw.wingwit.com/Article/program/PB/201311/24553.html