- 积分
- 15190
- 明经币
- 个
- 注册时间
- 2003-9-13
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
想创建一特殊形状的窗体,但是运行的时候提示"找不到DLL的入口点createellipticrgn gdi 32 ",我对于这些还不大清楚,是不是VB安装有问题啊
Option Explicit
Private Declare Function createellipticrgn Lib "gdi32" _
(ByVal x1 As Long, ByVal y1 As Long, _
ByVal x2 As Long, ByVal y2 As Long) As Long
Private Declare Function combinergn Lib "gdi32" _
(ByVal hedstrgn As Long, ByVal hsrcrgn1 As Long, _
ByVal hsrcrgn2 As Long, ByVal ncombinemode As Long) As Long
Private Declare Function setwindowrgn Lib "user32" _
(ByVal hwnd As Long, ByVal hrgn As Long, _
ByVal bredraw As Boolean) As Long
Const rgn_xor = 3
Private Sub form_load()
Dim x1, x2
x1 = createellipticrgn(100, 100, 400, 400)
x2 = createellipticrgn(200, 100, 500, 400)
combinergn x1, x1, x2, rgn_xor
setwindowrgn hwnd, x1, 1
End Sub |
|