Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "WinAPI";
Текущий архив: 2002.12.09;
Скачать: [xml.tar.bz2];

Вниз

Хуки - проблема с ловушками.   Найти похожие ветки 

 
Senka   (2002-10-24 19:51) [0]

Помогите кто нить с примером как поставить хук на правую кнопку мыши и чтобы это событие не передавалось системному обработчику.
спасиба


 
Cobalt   (2002-10-24 20:48) [1]

Hooks - аспекты реализации (21.03.02 16:19)
http://delphi.mastak.ru/articles/hooks/index.html
Приятного чтения.


 
Senka   (2002-10-27 10:22) [2]

Там я не нашел как сделать чтобы сообшение от мыши не дошло до системного обработчика, может кто знает помогите пожалста.


 
Cobalt   (2002-10-27 13:35) [3]

А справку прочитать лень?

The MouseProc hook procedure is an application-defined or library-defined callback function the system calls whenever an application calls the GetMessage or PeekMessage function and there is a mouse message to be processed.

LRESULT CALLBACK MouseProc(
int nCode, // hook code
WPARAM wParam, // message identifier
LPARAM lParam // mouse coordinates
);


Parameters

nCode

Specifies a code the hook procedure uses to determine how to process the message. This parameter can be one of the following values:

Value Meaning
HC_ACTION The wParam and lParam parameters contain information about a mouse message.
HC_NOREMOVE The wParam and lParam parameters contain information about a mouse message, and the mouse message has not been removed from the message queue. (An application called the PeekMessage function, specifying the PM_NOREMOVE flag.)


If nCode is less than zero, the hook procedure must pass the message to the CallNextHookEx function without further processing and should return the value returned by CallNextHookEx.

wParam

Specifies the identifier of the mouse message.

lParam

Points to a MOUSEHOOKSTRUCT structure.



Return Values

To enable the system to process the message, the return value must be zero. To discard the message, the return value must be a nonzero value.



Страницы: 1 вся ветка

Форум: "WinAPI";
Текущий архив: 2002.12.09;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.009 c
3-27844
Sword-Fish
2002-11-20 08:45
2002.12.09
Работа с БД


7-28311
NOE
2002-10-04 18:09
2002.12.09
Service


14-28228
Suprime
2002-11-14 21:34
2002.12.09
Нужно обойти


1-27963
Azerg
2002-11-29 13:50
2002.12.09
Программа не завершается при выходе из Виндов


4-28359
ULTRIX
2002-10-26 01:26
2002.12.09
Окна хендлы и эдиты





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский