Skip to content

Commit

Permalink
Update LinkLabel.bas
Browse files Browse the repository at this point in the history
  • Loading branch information
XusinboyBekchanov committed May 21, 2024
1 parent c64bc0b commit fdaf546
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mff/LinkLabel.bas
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ Namespace My.Sys.Forms
Private Sub LinkLabel.ProcessMessage(ByRef Message As Message)
#ifndef __USE_GTK__
Select Case Message.Msg
Case WM_ERASEBKGND 'WM_PAINT, WM_ERASEBKGND
If Not FCreated Then
FCreated = True
Dim As HDC Dc
Dim As PAINTSTRUCT Ps
Dim As ..Rect R
GetClientRect FHandle, @R
Dc = BeginPaint(FHandle, @Ps)
FillRect Dc, @R, Brush.Handle
EndPaint FHandle, @Ps
Width = Width + 1
Width = Width - 1
Message.Result = -1
Return
End If
Case CM_NOTIFY
Select Case Cast(LPNMHDR, Message.lParam)->code
Case NM_CLICK, NM_RETURN
Expand Down

0 comments on commit fdaf546

Please sign in to comment.