الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

اريد شرح لاجزاء من دالة sendmessage

مغلق
بدأه hossam2525 في 27 مايو 2007 · 2 رد · 710 مشاهدة · في لغة Ms Visual Basic 6 وما قبلها من إصدارات
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

اريد توضيح بسيط للدالة sendmessage

بالنسبة للدالة فتكون كالاتى

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

انا اعرف ان hwnd هى الهاندل و الmessage

ولكن الذى لا اعرفه هو wParam و lParam ما معناهم وايه فائدتهم

ارجوا شرح هذين البارامترين لانى لا اعرف عنهم اى شئ غير انهم = 0 وليه الاخير يعرف as any

وما الفرق بينها وبين postmessage

والفرق بيها وبين sendmessageA

وشكرا لكم

#2

مقتبس من الـ API Guide :

اقتباس
· wParam

Specifies additional message-specific information.

· lParam

Specifies additional message-specific information.

يعنى ببساطة شديدة 2 Parameter أحيانا بنستعملهم لتمرير معطيات أخرى للدالة.

اقتباس
The SendMessage function sends the specified message to a window or windows. The function calls the window procedure for the specified window and does not return until the window procedure has processed the message. The PostMessage function, in contrast, posts a message to a thread’s message queue and returns immediately.

The PostMessage function places (posts) a message in the message queue associated with the thread that created the specified window and then returns without waiting for the thread to process the message.

فى وظائف أخرى كـ SendMessageTimeout , هتلاقى شرحهم على موقع AllAPI

تم تعديل هذه المشاركة بواسطة msayed2004 في 27 مايو 2007 في 13:07

هذا الموضوع مغلق.

مواضيع مشابهة