Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2008.01.06;
Скачать: CL | DM;

Вниз

Как приостановить выполнение процедуры до изменения Clipboard   Найти похожие ветки 

 
O.Snopok ©   (2007-12-09 03:45) [0]

Моя программа работает через Automation с математическим пакетом. Нужно в теле программы приостановить выполнение до того момента, как мат. пакет посчитает то, что от него требуется и выдаст эти данные в Clipboard. Фактически, нужно нечто вроде "sleep until clipboard_changed". Возможно ли реализовать описанное?


 
TUser ©   (2007-12-09 05:51) [1]

Надо создать свой Clipboard Viewer, см. в справке по msdn на тему Clipboard Viewer Windows

A window adds itself to the clipboard viewer chain by calling the SetClipboardViewer function. The return value is the handle of the next window in the chain. To retrieve the handle of the first window in the chain, call the GetClipboardViewer function.

Each clipboard viewer window must keep track of the next window in the clipboard viewer chain. When the content of the clipboard changes, the system sends a WM_DRAWCLIPBOARD message to the first window in the chain. After updating its display, each clipboard viewer window must pass this message on to the next window in the chain.
Before closing, a clipboard viewer window must remove itself from the clipboard viewer chain by calling the ChangeClipboardChain function. The system then sends a WM_CHANGECBCHAIN message to the first window in the chain.

For more information about processing the WM_DRAWCLIPBOARD and WM_CHANGECBCHAIN messages, see Creating a Clipboard Viewer Window.


 
Сергей М. ©   (2007-12-10 09:05) [2]


> Моя программа работает через Automation


Позволю себе усомниться в том, что этот мат.пакет не умеет возвращать рез-ты вычислений иначе чем через клипборд.



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

Текущий архив: 2008.01.06;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.007 c
15-1196676079
Cerber
2007-12-03 13:01
2008.01.06
adsl и соеденение через сотовый телефон


2-1197332815
San1
2007-12-11 03:26
2008.01.06
создание класса на основе TBitmap


6-1177420044
tytus
2007-04-24 17:07
2008.01.06
idTCPClient 10 в длл - как проверить коннект?


15-1196738725
Slider007
2007-12-04 06:25
2008.01.06
С днем рождения ! 4 декабря 2007 вторник


2-1197145437
sdaf
2007-12-08 23:23
2008.01.06
Edit