Главная страница
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.012 c
1-94454
Decoda
2002-04-15 21:38
2002.04.29
А можно не изобретать велосипед ?


14-94572
Doom
2002-03-21 11:25
2002.04.29
Люди !!! Помогите !!! Модем одурел совсем !! Сам по себе работает!!!


4-94615
Nigth
2002-02-21 00:24
2002.04.29
Win API


3-94324
Uncle SAM
2002-04-02 01:47
2002.04.29
SPLIT


3-94272
IronHawk
2002-04-03 10:40
2002.04.29
Приветствую Мастеров ! Вот появился вопросик, как очистить ....