Андрей. писал(а):
речь шла о противоречии в твоих словахСначала речь шла об элементе Send Message - так называется топик
Андрей писал(а):
из этого следует, что оно должно быть описаноНазначение параметра зависит от значения Message, и определяется разработчиком операционной системы
И от такого хинта вопросов меньше не станет совершенно.
Попросту говоря: запускаешь MSDN, набираешь в поиске название сообщения (к примеру WM_CHILDACTIVATE), ищешь, читаешь, не фига не понимаешь, начинаешь ходить по ссылкам и читать там, наконец - просто читаешь буквари про винду...
Потому что Send Message - это инструмент работы с виндой
А можно просто набрать там же SendMessage и получить примерно следующее:
SendMessage Function
--------------------------------------------------------------------------------
The SendMessage function sends the specified message to a window or windows. It calls the window procedure for the specified window and does not return until the window procedure has processed the message.
To send a message and return immediately, use the !SendMessageCallback! or !SendNotifyMessage! function. To post a message to a thread's message queue and return immediately, use the !PostMessage! or !PostThreadMessage! function.
Syntax
LRESULT SendMessage( HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
Parameters
hWnd
[in] Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows.
Msg
[in] Specifies the message to be sent.
wParam
[in] Specifies additional message-specific information.
lParam
[in] Specifies additional message-specific information.
Return Value
The return value specifies the result of the message processing; it depends on the message sent.
Remarks
Applications that need to communicate using HWND_BROADCAST should use the !RegisterWindowMessage! function to obtain a unique message for inter-application communication.
The system only does marshalling for system messages (those in the range 0 to !WM_USER!). To send other messages (those above !WM_USER!) to another process, you must do custom marshalling.
If the specified window was created by the calling thread, the window procedure is called immediately as a subroutine. If the specified window was created by a different thread, the system switches to that thread and calls the appropriate window procedure. Messages sent between threads are processed only when the receiving thread executes message retrieval code. The sending thread is blocked until the receiving thread processes the message. However, the sending thread will process incoming nonqueued messages while waiting for its message to be processed. To prevent this, use !SendMessageTimeout! with SMTO_BLOCK set. For more information on nonqueued messages, see !Nonqueued_Messages!.
Windows 95/98/Me: SendMessageW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in !Microsoft_Layer_for_Unicode_on_Windows_95/98/Me_Systems!.
Example
For an example, see !Processing_Keyboard_Input!.
--------------------------------------------------------------------------------
The SendMessage function sends the specified message to a window or windows. It calls the window procedure for the specified window and does not return until the window procedure has processed the message.
To send a message and return immediately, use the !SendMessageCallback! or !SendNotifyMessage! function. To post a message to a thread's message queue and return immediately, use the !PostMessage! or !PostThreadMessage! function.
Syntax
LRESULT SendMessage( HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
Parameters
hWnd
[in] Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows.
Msg
[in] Specifies the message to be sent.
wParam
[in] Specifies additional message-specific information.
lParam
[in] Specifies additional message-specific information.
Return Value
The return value specifies the result of the message processing; it depends on the message sent.
Remarks
Applications that need to communicate using HWND_BROADCAST should use the !RegisterWindowMessage! function to obtain a unique message for inter-application communication.
The system only does marshalling for system messages (those in the range 0 to !WM_USER!). To send other messages (those above !WM_USER!) to another process, you must do custom marshalling.
If the specified window was created by the calling thread, the window procedure is called immediately as a subroutine. If the specified window was created by a different thread, the system switches to that thread and calls the appropriate window procedure. Messages sent between threads are processed only when the receiving thread executes message retrieval code. The sending thread is blocked until the receiving thread processes the message. However, the sending thread will process incoming nonqueued messages while waiting for its message to be processed. To prevent this, use !SendMessageTimeout! with SMTO_BLOCK set. For more information on nonqueued messages, see !Nonqueued_Messages!.
Windows 95/98/Me: SendMessageW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in !Microsoft_Layer_for_Unicode_on_Windows_95/98/Me_Systems!.
Example
For an example, see !Processing_Keyboard_Input!.
Причем синенькие - это там ссылки для дополнительного чтения (у нас они никуда не ведут, естественно)....
Понятнее стало про wParam и lParam


Андрей. писал(а):
Это крайность конечно, а если не утрировать, то именно это и привлекает в хиасме, по крайней мере, большинство моих знакомых. Попутно человек учится, получает опыт...
Это ли не есть правильно?
Если учится, получает опыт - это один разговор
Если говорит: "Господа, может хоть кто-то дать пример, а не советы типа: ..." - это другой
А теперь, внимание

