j수다님 강좌 보고 따라 햇는데요.
한
폼이름이 않바껴요
Private CName As String
Private Declare Function SetCapture Lib user32 (ByVal hWnd As Long) As Long
Private Declare Function ReleaseCapture Lib user32 () As Long
Private Declare Function GetCapture Lib user32 () As Long
Private Declare Function SendMessage Lib user32 Alias SendMessageA _
(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, IParam As Any) As Long
Private Const HTCAPTION = 2
Private Const WM_NCLBUTTONDOWN = &HA1
Private Declare Function SetWindowRgn Lib user32 (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Long) As Long
Private Declare Function CreateRoundRectRgn Lib gdi32 (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long
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 Sub UserControl_ReadProperties(PropBag As PropertyBag)
CName = PropBag.ReadProperty(Caption, UserControl.Name)
lblCaption = CName
End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
Call PropBag.WriteProperty(Caption, CName, Empty)
End Sub
Public Property Get Caption() As String
Caption = CName
End Property
Public Property Let Caption(Str As String)
CName = Str
lblCaption = CName
End Property
Private Sub iBiDrag_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim IngReturnValue As Long
If Button = 1 Then
Call ReleaseCapture
IngReturnValue = SendMessage(Parent.hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&)
End If
End Sub
Private Sub Picture1_Click()
Unload Parent
End Sub
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Picture1.Picture = Image3.Picture
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If (X 0) Or (Y 0) Or (X Picture1.Width) Or (Y Picture1.Height) Then
ReleaseCapture
Picture1.Picture = Image1.Picture
ElseIf GetCapture Picture1.hWnd Then
SetCapture Picture1.hWnd
Picture1.Picture = Image2.Picture
End If
End Sub
Private Sub UserControl_Resize()
On Error Resume Next
iBiDrag.Width = Width - 240
Picture1.Left = Width - 230
iUp.Left = iUpLeft.Width
iUp.Width = Width - iUpLeft.Width - iUpRight.Width
iUpRight.Left = iUpLeft.Width + iUp.Wid iUp.Width
iLeft.Top = iUp.Height
iCenter.Top = iUp.Height
iRight.Top = iUp.Height
iCenter.Left = iUp.Left
iCenter.Width = iUp.Width
iRight.Left = iUpRight.Left
iCenter.Height = Height - iUp.Height - idown.Height
iLeft.Height = Height - iUp.Height - idown.Height
iRight.Height = Height - iUp.Height - idown.Height
idownleft.Top = iUp.Height + iCenter.Height
idown.Top = iUp.Height + iCenter.Height
idownRight.Top = iUp.Height + iCenter.Height
idown.Left = iUp.Left
idown.Width = iUp.Width
idownRight.Left = iRight.Left
End Sub
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2699025 | 블루투스 시리얼통신으로 리스트뷰에 등록 | 목화 | 2025-06-22 |
2698995 | [사진有] 비밀번호 틀리면 다음 창으로 안넘어가지게 하는법없나요?? (3) | 슬현 | 2025-06-22 |
2698939 | 메세지박스 줄띄우는법 | 누리별 | 2025-06-21 |
2698910 | 런타임 424 질문 | 야미 | 2025-06-21 |
2698883 | 배열에 관련하여 (1) | 민트맛캔디 | 2025-06-21 |
2698856 | 빤짝거리는 내 툴의 재목 !? | 초롱꽃 | 2025-06-20 |
2698830 | 리스트 인덱스 질문 (2) | 말글 | 2025-06-20 |
2698803 | 리스트 뷰 질문이요. (2) | 딸기향 | 2025-06-20 |
2698750 | 헐 웹브앙대요 | 꺆잉 | 2025-06-19 |
2698694 | 모듈의 핸들 | 렁찬 | 2025-06-19 |
2698674 | VB 고수분들 봐주세요 (6) | 세이 | 2025-06-19 |
2698617 | 윈속.ocx다운받는곳좀여 | 안토니 | 2025-06-18 |
2698588 | 자 나를 즐겁게 해봐요 | 다흰 | 2025-06-18 |
2698529 | 이거 저작권 상,고,명인데 점부탇드림 (3) | 서향 | 2025-06-17 |
2698503 | 오늘도~윈속질문이요~ | 텐시 | 2025-06-17 |
2698478 | 비베6에서 exe파일만들때 자동링커되려면 | 달달한캔디 | 2025-06-17 |
2698431 | 파일 주소 숨기고 다운로드 하게 하는 방법! (질문임..) (1) | 비마중 | 2025-06-16 |
2698405 | 어떤 dll 이 제 보안프로그램 메모리를 자꾸 변조하는데. (2) | 귀염포텐 | 2025-06-16 |
2698372 | 웹브라우저 특정부분 보여주기 | 보물선 | 2025-06-16 |
2698343 | 위도우 8 - 비주얼베이직 6.0 설치 오류..(Heple...Me..ㅠ_ㅠ) (2) | 접시 | 2025-06-16 |