質問するログイン新規登録

回答編集履歴

1

ReleaseDC の引数修正

2020/01/08 06:49

投稿

KOZ6.0
KOZ6.0

スコア2740

answer CHANGED
@@ -52,7 +52,7 @@
52
52
  Using g As Graphics = Graphics.FromHdc(hdc)
53
53
  DrawBorder(g)
54
54
  End Using
55
- ReleaseDC(Me.Handle, hdc)
55
+ ReleaseDC(m.HWnd, hdc)
56
56
  Case BorderStyle.FixedSingle
57
57
  Using g As Graphics = CreateGraphics()
58
58
  DrawBorder(g)