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

Вниз

Оконная функция   Найти похожие ветки 

 
Ewgenij   (2002-02-20 23:08) [0]

Привет всем!
Как изменить оконную функцию заданного приложения?


 
VuDZ ©   (2002-02-21 00:40) [1]

SetWindowLong()


 
Иван Шихалев ©   (2002-02-21 02:29) [2]

Только есть один нюанс: оконная функция принадлежит окну (точнее - его классу), а никак не приложению.


 
VuDZ ©   (2002-02-21 02:35) [3]

и ещё один ньюанс: Windows NT/2000 or later: You cannot change this attribute if the window does not belong to the same process as the calling thread.

If you use SetWindowLong with the GWL_WNDPROC index to replace the window procedure, the window procedure must conform to the guidelines specified in the description of the WindowProc callback function.

и на последок:
Calling SetWindowLong with the GWL_WNDPROC index creates a subclass of the window class used to create the window. An application can subclass a system class, but should not subclass a window class created by another process. The SetWindowLong function creates the window subclass by changing the window procedure associated with a particular window class, causing the system to call the new window procedure instead of the previous one. An application must pass any messages not processed by the new window procedure to the previous window procedure by calling CallWindowProc. This allows the application to create a chain of window procedures.


 
Raptor ©   (2002-02-22 11:41) [4]

2 Иван Шихалев
Только есть один нюанс: оконная функция принадлежит окну (точнее - его классу), а никак не приложению.

Что это ты имеешь ввиду? А разве само окно не принадлежит приложению? И разве оконная функция не находится в адресном пространстве процесса, создавшего это окно?


 
VuDZ ©   (2002-02-22 16:26) [5]

>Raptor
а мололи что ты хочешь сделать с другим окном :>



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

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

Наверх




Память: 0.47 MB
Время: 0.008 c
3-94335
Dmitry Zubtsov
2002-04-09 18:39
2002.04.29
Доступ из Delphi 6 к MySQL


1-94379
inko
2002-04-13 15:15
2002.04.29
Почему не работает CheckBox2 ?


6-94532
Timon
2002-02-14 09:21
2002.04.29
TClientSocket


3-94284
Бульбаш
2002-04-08 16:08
2002.04.29
Как управлять транзакциями Oracle при использовании ODAC


1-94485
MMarat
2002-04-16 13:50
2002.04.29
Вложенность