Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Как по HWND получить TForm?
|
|||
|---|---|---|---|
|
#18+
Собственно, топик. Спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.01.2004, 17:12 |
|
||
|
Как по HWND получить TForm?
|
|||
|---|---|---|---|
|
#18+
собственно только пробежаться по списку компонентов Components[Index: Integer]: TComponent , проверить форма это или нет и если да, то посмотреть и сравнить ее handle ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.01.2004, 03:25 |
|
||
|
Как по HWND получить TForm?
|
|||
|---|---|---|---|
|
#18+
x:=FindControl(HWND); if X.InheritsFrom(TForm) then Result:=TFom(x); ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.01.2004, 13:36 |
|
||
|
Как по HWND получить TForm?
|
|||
|---|---|---|---|
|
#18+
function FormSearch(const Handle: HWND): TForm; var i: Integer; begin Result:= nil; for i:= 0 to Screen.FormCount - 1 do if Screen.Forms .Handle = Handle then begin Result:= Screen.Forms; Break end end; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.01.2004, 14:13 |
|
||
|
Как по HWND получить TForm?
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.01.2004, 14:44 |
|
||
|
Как по HWND получить TForm?
|
|||
|---|---|---|---|
|
#18+
Спасибо всем, кто отclickнулся. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.01.2004, 15:17 |
|
||
|
Как по HWND получить TForm?
|
|||
|---|---|---|---|
|
#18+
Win32 programmer`s reference: The GetClassName function retrieves the name of the class to which the specified window belongs. Код: plaintext 1. 2. 3. 4. Parameters hWnd Identifies the window and, indirectly, the class to which the window belongs. lpClassName Points to the buffer that is to receive the class name string. nMaxCount Specifies the length, in characters, of the buffer pointed to by the lpClassName parameter. The class name string is truncated if it is longer than the buffer. Return Values If the function succeeds, the return value is the number of characters copied to the specified buffer. If the function fails, the return value is zero. To get extended error information, call GetLastError. eNose ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.01.2004, 08:54 |
|
||
|
Как по HWND получить TForm?
|
|||
|---|---|---|---|
|
#18+
для делфей не покатит. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.01.2004, 10:47 |
|
||
|
Как по HWND получить TForm?
|
|||
|---|---|---|---|
|
#18+
С чего бы вдруг??? FindWindow прекрасно работает с именем класса. Думаешь, GetClassName вернет что-то левое? eNose ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.01.2004, 13:07 |
|
||
|
|

start [/forum/topic.php?fid=58&fpage=1965&tid=2115139]: |
0ms |
get settings: |
8ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
29ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
50ms |
get tp. blocked users: |
1ms |
| others: | 214ms |
| total: | 336ms |

| 0 / 0 |
