Skip to content

Commit 39f09d6

Browse files
author
47_TT
committed
frmWindowAboutの描画を修正
1 parent 942b6b4 commit 39f09d6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

frmWindowAbout.vb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Friend Class frmWindowAbout
1010

1111
Dim intTemp As Short
1212

13+
SetBkMode(hDC, TRANSPARENT)
14+
1315
intTemp = LenB(Text_Renamed)
1416

1517
With Me
@@ -190,7 +192,7 @@ Friend Class frmWindowAbout
190192

191193
Call PrintText(hDC, strTemp, 1, 1)
192194

193-
Call PrintText(hDC, "Undo Counter: " & g_InputLog.GetPos & " / " & g_InputLog.Max, 1, 13)
195+
Call PrintText(hDC, "Undo Counter: " & g_InputLog.GetPos & " / " & g_InputLog.Max, 1, 16)
194196

195197
'.Font.SIZE = 12 * (Screen.TwipsPerPixelX / 15)
196198
'.Font.Underline = True

modDraw.vb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Module modDraw
2222

2323
Public Declare Function TextOut Lib "gdi32" Alias "TextOutW" (ByVal hdc As Integer, ByVal X As Integer, ByVal Y As Integer, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpString As String, ByVal nCount As Integer) As Integer
2424
Public Declare Function SetTextColor Lib "gdi32" (ByVal hdc As Integer, ByVal crColor As Integer) As Integer
25+
Public Declare Function SetBkMode Lib "gdi32" (ByVal hdc As Integer, ByVal iBkMode As Integer) As Integer
2526

2627
Public Declare Function Rectangle Lib "gdi32" (ByVal hdc As Integer, ByVal X1 As Integer, ByVal Y1 As Integer, ByVal X2 As Integer, ByVal Y2 As Integer) As Integer
2728
Public Declare Function LineTo Lib "gdi32" (ByVal hdc As Integer, ByVal X As Integer, ByVal Y As Integer) As Integer
@@ -57,6 +58,11 @@ Module modDraw
5758
Public Const BS_PATTERN8X8 As Short = 7
5859
Public Const BS_DIBPATTERN8X8 As Short = 8
5960

61+
'SetBkMode 関連
62+
Public Const TRANSPARENT As Integer = 1
63+
Public Const OPAQUE As Integer = 2
64+
Public Const BKMODE_LAST As Integer = 2
65+
6066
<StructLayout(LayoutKind.Sequential)> Public Structure LOGBRUSH
6167
Dim lbStyle As Integer
6268
Dim lbColor As Integer

0 commit comments

Comments
 (0)