ش | ی | د | س | چ | پ | ج |
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 |
تمام مطالب زیر از سایت خارجی استخراج شده بخوانید و لذت ببرید. داکیومنت یا رفرنس نیز با لینک قید گردیده.
Sent to a dialog box procedure to set the keyboard focus to a different control in the dialog box.
ارسال به دیالوگ باکس برای تنظیم ( یا تغییر ؟ ) فوکس کیبورد به کنترل دیگر در این باکس
The low-order word indicates how the system uses wParam. If the low-order word is TRUE, wParam is a handle associated with the control that receives the focus
low-order نشان میدهد که چگونه سیستم از wParam استفاده می نماید . اگر True باشد ( lParam ) ، در نتیجه wParam هندلی است در ارتباط با کنترلی که فوکس را دریافت می نماید .
wParam : GetDlgItem(hwnd/wParm,IDCtrl)
lParam=True Or >0
DM_GETDEFID : '&H400
Retrieves the identifier of the default push button control for a dialog box.
VK_TAB =&h9
SubClassEditControl :
Select Case Umsg
Case 8 'WM_KILLFOCUS
'1000 is Id Of SysLink Control
'Set KeyBoard Focus To SysLink (ID:1000 )
PostMessage hwndParent, &H28, GetDlgItem(hwndParent, 1000), 1
INT_PTR CALLBACK TabBackwardSubclassProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam,UINT_PTR subclassId, DWORD_PTR){switch (message) {case WM_NCDESTROY:RemoveWindowSubclass(hwnd, TabBackwardSubclassProc,subclassId);break;case WM_GETDLGCODE:return DefSubclassProc(hwnd, message, wParam, lParam) |DLGC_WANTTAB;case WM_KEYDOWN:HWND hdlg = GetParent(hwnd);if (wParam == VK_TAB) {if (GetKeyState(VK_SHIFT) < 0) {HWND tabDestination = GetDlgItem(hdlg,// Tabbing backward - go to the Customer ID.IDC_CUSTOMERID);// Do the normal tabbing thing.SendMessage(hdlg, WM_NEXTDLGCTL,(WPARAM)tabDestination, TRUE);} else {if (wParam == VK_TAB) return 0;SendMessage(hdlg, WM_NEXTDLGCTL, FALSE, FALSE);}return 0;}}break;case WM_CHAR:break;return DefSubclassProc(hwnd, message, wParam, lParam);}
If lCode = HCBT_ACTIVATE Then
If IsMsgBox(wParam) ThenCall UnhookWindowsHookEx(hHook): hHook = 0hStatic = GetDlgItem(wParam, IDPROMPT)If InStr(1, sStoredPrompt, sStoredHypText, vbTextCompare) ThenhFont = SendMessage(hStatic, WM_GETFONT, 0, 0)With tStaticRectCall GetWindowRect(hStatic, tStaticRect)p1.X = .Left: p1.Y = .TopCall ScreenToClient(wParam, p1)Call DestroyWindow(hStatic)Call MoveWindow(hSysLink, p1.X, p1.Y, .Right - .Left, .Bottom - .Top, 1)Call SendMessage(hSysLink, WM_SETFONT, hFont, True)End WithCall SendMessage(wParam, WM_NEXTDLGCTL, GetDlgItem(wParam, loword(CLng(SendMessage(wParam, DM_GETDEFID, 0, 0)))), True)End IfEnd IfEnd If