Главная страница
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.015 c
1-94370
Gamar
2002-04-17 12:15
2002.04.29
Локализация проектов


14-94570
Почемучка
2002-03-20 12:33
2002.04.29
QReport в Delphi 5.0


4-94637
celestial
2002-02-25 08:56
2002.04.29
Как запретить окну быть активным?


1-94402
vlv
2002-04-17 19:39
2002.04.29
Диалог выбора цвета


7-94580
goshavt
2002-01-31 11:54
2002.04.29
как в сервисе NT создать видимое окно?