![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Handle
Pantero © (2001-11-03 23:59:00)Как я могу связываться с (получить данные) от Edit"a. Подскажите какой handle нужен???
Evgeny (2001-11-05 07:38:00) [1]Можно так:
LONG SendDlgItemMessage(
HWND hDlg, // handle of dialog box
int nIDDlgItem, // identifier of control
UINT Msg, // message to send
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
или так:
LRESULT SendMessage(
HWND hWnd, // handle of destination window
UINT Msg, // message to send
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
в качестве Msg указать WM_GETTEXT
а можно и так:
int GetWindowText(
HWND hWnd, // handle of window or control with text
LPTSTR lpString, // address of buffer for text
int nMaxCount // maximum number of characters to copy
);
в общем выбырай, что больше подходит.
Mbo (2001-11-04 01:15:00) [2]Можно просто Astring:=Edit1.text;
если через API, то
var h:HWND;
h:=Edit1.Handle;
и дальше,что нужно