Главная страница
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.01 c
3-94273
КСА
2002-04-08 11:25
2002.04.29
Дайте кто-нибудь пожалуйста IB 5.6


1-94454
Decoda
2002-04-15 21:38
2002.04.29
А можно не изобретать велосипед ?


1-94497
Ptushenko Denis
2002-04-16 15:33
2002.04.29
Кто знает как проигрывать MP3 ?


1-94378
Sound
2002-04-17 01:38
2002.04.29
Как востановить размер окна при запуске программы?


1-94511
anod
2002-04-16 00:30
2002.04.29
Scroll в ListBox