Главная страница
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
3-94265
cranium
2002-04-07 20:36
2002.04.29
Список пользователей базы InterBase


3-94311
CashDi
2002-04-09 10:21
2002.04.29
D6


14-94549
Nest
2002-03-21 14:42
2002.04.29
Как сделать недоступными некоторые items в TListBox? Или есть другой компонент с такой фичей?


1-94428
JF
2002-04-18 12:04
2002.04.29
Opredelenie versii Delphi


1-94418
Stan Orlov
2002-04-18 09:06
2002.04.29
Как выделить весь текст в RichEdit или Memo?