You are on page 1of 1

Private Sub UserForm_Activate()

Dim hWnd As Long, Ret As Long


Dim i As Integer

hWnd = FindWindow("ThunderDFrame", Me.Caption) '## ����������� �‫ڵ‬鰪� ���´�(��


����̹
ȼ� ĸ�ǰ��� ������)

Ret = GetWindowLong(hWnd, GWL_STYLE) '## ���� ��� ����� �Ӽ�� ���´�

Ret = Ret And Not (WS_CAPTION) '## Ÿ��Ʋ�� ���

Call SetWindowLong(hWnd, GWL_STYLE, Ret) '## ����� �Ӽ�����

Call SetWindowLong(hWnd, GWL_EXSTYLE, Ret) '## ������� Ȯ���� �Ӽ�����

'# SetLayeredWindowAttributes hWnd, 0, 150, LWA_ALPHA '## �������� ��(��� 150)

With Me

.Height = .lblProgress.Height '## ���� ���

.lblProgress.Width = 0 '## �ʱⰪ(���) 0 ��� ���

For i = 1 To .Width '## ������� Width��ŭ ����


DoEvents: Sleep 10 '## ������ �������� ����ȼ�
0.01�ʰ� ����� �ϱ�

.lblProgress.Width = i '## ���� �ʺ� ��ȯ�ϴ� ����ŭ �÷��ֹȼ�

.lblPer.Caption = Format(i / .Width, "###" & "%") '## 100�з�� ȯ�갪� ���
��ֱ�

If .lblProgress.Width > .lblPer.Left Then '## ���‫�� ��ڻ‬濡 ��� �‫ֹ��ٲ‬ȼ�


.lblPer.ForeColor = &H8000000F
End If

Next i
End With

Unload Me '## ��� ����� �‫�ݱ‬..

You might also like