DrawEdge(GetDC(handle(this))
lr_Border
end if
return
//
// *** end lbuttondown event ***
//
// *** begin lbuttonup event ***
//
rect lr_Border
if ib_MouseCaptured then
ib_MouseCaptured = FALSE
ReleaseCapture()
end if
if (XPos <
this
in_State =
this
else
in_State =
this
SetCapture(handle(this))
ib_MouseCaptured = TRUE
if not sb_SuppressHoverBorder then
lr_Border
lr_Border
lr_Border
(this
lr_Border
(this
DrawEdge(GetDC(handle(this))
lr_Border
end if
end if
// 產生Clicked事件
this
return
//
// *** end lbuttonup event ***
//
// *** begin other event ***
//
if message
// wm_CaptureChanged
ib_MouseCaptured = FALSE
in_State =
this
return
end if
return
//
// *** end other event ***
四
[
From:http://tw.wingwit.com/Article/program/PB/201311/24554.html