Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
||
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[3.128.202.221] |
|
Сообщ.
#1
,
|
|
|
Как кзнать имя контрола ИЛИ тип ( кнопка , едит , мема итд )
зная hwnd или Handle этого контрола. хочется запретить клики мышкой в некоторые моменты по некоторым штукам , я это делаю путем убивания массяг , а хочется узнать какому именно контролу идет массяга. Кроме как сравнивать типа If (Grid.Handle=msg.hwnd) then ... Handled:=true; я ничего другова не придул . А надо имя контрола , а лучше его класс ( имя класса ). |
Сообщ.
#2
,
|
|
|
Цитата Returns the windowed control whose window is identified by the specified window handle. Unit Controls Category Windows controls utilitiesWindows controls utilities function FindControl(Handle: HWnd): TWinControl; Description Call FindControl to access the windowed control whose window is identified by the Handle parameter. If Handle is not the handle of the window of a windowed control, FindControl returns nil. |
Сообщ.
#3
,
|
|
|
GetClassName The GetClassName function retrieves the name of the class to which the specified window belongs. int GetClassName( HWND hWnd, // handle of window LPTSTR lpClassName, // address of buffer for class name int nMaxCount // size of buffer, in characters ); |