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

Вниз

Аналог ProcessMessage   Найти похожие ветки 

 
*Pavel ©   (2005-09-26 16:33) [0]

Есть ли на VB для Excel аналог Делфийского ProcessMessage ?


 
GuAV ©   (2005-09-26 16:57) [1]

В обычном VB есть DoEvents, в VBA не знаю.


 
Digitman ©   (2005-09-26 16:57) [2]

DoEvents Function
     

Yields execution so that the operating system can process other events.

Syntax

DoEvents( )

Remarks

The DoEvents function returns an Integer representing the number of open forms in stand-alone versions of Visual Basic, such as Visual Basic, Professional Edition. DoEvents returns zero in all other applications.

DoEvents passes control to the operating system. Control is returned after the operating system has finished processing the events in its queue and all keys in the SendKeys queue have been sent.

DoEvents is most useful for simple things like allowing a user to cancel a process after it has started, for example a search for a file. For long-running processes, yielding the processor is better accomplished by using a Timer or delegating the task to an ActiveX EXE component.. In the latter case, the task can continue completely independent of your application, and the operating system takes case of multitasking and time slicing.

Caution   Any time you temporarily yield the processor within an event procedure, make sure the procedure is not executed again from a different part of your code before the first call returns; this could cause unpredictable results. In addition, do not use DoEvents if other applications could possibly interact with your procedure in unforeseen ways during the time you have yielded control.



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

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

Наверх




Память: 0.47 MB
Время: 0.049 c
4-1124213393
SuperMatser
2005-08-16 21:29
2005.10.16
Кто нить работал с GetBKcolor? ничего не получается!!!!!!!!!!!!!!


14-1127133477
Антоний
2005-09-19 16:37
2005.10.16
WinXP и подключение к Win2003Server


14-1127745617
Fl@sh
2005-09-26 18:40
2005.10.16
Form1.Caption := я, сделал это... ;


4-1124229187
SuperMatser
2005-08-17 01:53
2005.10.16
Проблема с цветом!!!!!!!!!!!!!!! WinAPi


14-1127651029
alsov
2005-09-25 16:23
2005.10.16
Компонент - кнопка с 4 положениями (Up, MouseMove, Down, Disable)