ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
بسته شدن پنجره زمانیکه کپشن به عدد 10 رسید.
: 64BIT
Declare PtrSafe Function SetTimer Lib "user32" Alias "SetTimer" (ByVal hWnd As LongPtr, ByVal nIDEvent As LongPtr, ByVal uElapse As Long, ByVal lpTimerFunc As LongPtr) As LongPtr
Declare PtrSafe Function KillTimer Lib "user32" Alias "KillTimer" (ByVal hwnd As LongPtr, ByVal nIDEvent As LongPtr) As Long
Private Const TIMER1 = 1001
SetTimer hWndMainWnd,TIMER1,1000,0
(WndProc(HWND hWnd,UINT uMsg,WPARAM
Static xtimer
Select Case uMsg
xtimer=xtimer+1
case WM_TIMER
if wParam = TIMER1
SetWindowTextA hwnd, xtimer
If xtimer = 10 Then SendMessageA hwnd, WM_CLOSE, 0, 0: xtimer = 0
End if
عدم نمایش شورتکات در ادیت کنترل در ساب کلاس کردن Case WM_CONTEXTMENU
Exit Function
Case WM_DESTROY, WM_NCDESTROY
KillTimer hwnd, TIMER1
xtimer = 0