Вниз
Скачать: CL | DM;

SetCapture   Найти похожие ветки 

← →
IrcOp   (2002-08-23 23:10) [0]

Я конечно понимаю, что вопрос чисто "см. MSDN ака Win32 SDK", но все таки, объясните плиз, что делает сабжевая функция ? Ну не догоняю я никак. И заодно что делает ReleaseCapture.

Спасибо


← →
Юрий Зотов ©   (2002-08-23 23:41) [1]

The SetCapture function sets the mouse capture to the specified window belonging to the current thread. Once a window has captured the mouse, all mouse input is directed to that window, regardless of whether the cursor is within the borders of that window. Only one window at a time can capture the mouse.

If the mouse cursor is over a window created by another thread, the system will direct mouse input to the specified window only if a mouse button is down.

По-русски примерно так - перенаправляет сообщения мыши в заданное окно, даже если указатель мыши находится за его пределами.


The ReleaseCapture function releases the mouse capture from a window in the current thread and restores normal mouse input processing. A window that has captured the mouse receives all mouse input, regardless of the position of the cursor, except when a mouse button is clicked while the cursor hot spot is in the window of another thread.

По-русски примерно так - восстанавливает обычную обработку сообщений мыши.


← →
IrcOp   (2002-08-24 11:01) [2]

А может SetCapture вызвать несколько приложений ? И всем им будут дублироваться комманды нажатия ?


← →
Suntechnic ©   (2002-08-24 12:22) [3]

>IrcOp (24.08.02 11:01)
Ты читать умеешь? Окончание первого абзаца:
...Only one window at a time can capture the mouse....


← →
Roxtady   (2002-08-24 13:39) [4]

Вот ! И я про тоже. Значит, если кто-то вызвал SwtCapture, то ты не сможешь его вызвать. Пока то приложение не вызовет ReleaseCapture. Но SetCaprute необходимо для реализации обработки click"а мышкой. А если кто-то уже занял SetCapture, то у меня клик не будет работать...


← →
Polevi ©   (2002-08-24 15:17) [5]

вторую мышку подключи


← →
Viktor Kushnir ©   (2002-08-25 08:24) [6]

Без разницы. я ради спортивного интереса две мыши подключал.
Одну на ps/2 вторую на usb, они обе управляли одним курсором. Причем usb мыша была приорететнее.


← →
Polevi ©   (2002-08-25 12:45) [7]

удивительно


← →
Roxtady   (2002-08-25 15:10) [8]

Ничего удивительного



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

Скачать: CL | DM;



Память: 0.46 MB
Время: 0.009 c
1-31874
Kotka
2002-09-27 23:06
2002.10.10
Самораспаковывающийся архив


1-31870
vixic
2002-09-27 08:42
2002.10.10
Скрипты!


4-32100
Nikolab
2002-08-28 11:38
2002.10.10
Dlia nekotorie vk_xxx TCheckBox.OnKeyDown ne vuizivaetsia


1-31757
Дмитрий К.К.
2002-09-30 23:43
2002.10.10
Creation Order


1-31716
Осирис
2002-10-01 11:14
2002.10.10
TNotifyIconData




   Наверх