Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.10.06;
Скачать: CL | DM;

Вниз

var Windows: array of HWnd; ... SetLength(Windows,WindowsCount);   Найти похожие ветки 

 
Delphi5.01 ©   (2003-08-01 20:33) [0]

procedura doljna vozrashat masiv okon, a imenno ix Handle, no izmenat masiv ne vozmojno iz za togo chot napisano "var" pered "Windows: array of HWnd" (ia je ne znau skolko okon budet! po etoi prichine peredau dinamicheski).

procedure GetWindows(ParentWnd: HWnd;
var Windows: array of HWnd);
var WindowsCount: Integer;
begin
Inc(WindowsCount);
( Windows,WindowsCount) procedura doljna vozrashat masiv okon, a imenno ix Handle, no izmenat masiv ne vozmojno iz za togo chot napisano "var" pered "Windows: array of HWnd" (ia je ne znau skolko okon budet! po etoi prichine peredau dinamicheski).

procedure GetWindows(ParentWnd: HWnd;
var Windows: array of HWnd);
var WindowsCount: Integer;
begin
Inc(WindowsCount);
SetLength(Windows,WindowsCount);
end;

Kak oboiti problemu?
P.S. eto vopros ne vtemu mne kajetsa?


 
Rouse_ ©   (2003-08-02 08:31) [1]

HWND = type LongWord;

Желаю успехов


 
YURiQUE ©   (2003-08-02 12:06) [2]

Попробуй так


type
MyArray = array of HWnd;

procedure GetWindows(ParentWnd: HWnd;
var Windows: MyArray);
begin
Inc(WindowsCount);
( Windows,WindowsCount)
Попробуй так


type
MyArray = array of HWnd;

procedure GetWindows(ParentWnd: HWnd;
var Windows: MyArray);
begin
Inc(WindowsCount);
SetLength(Windows,WindowsCount);
end;

//...

var
w: MyArray;
begin
//...
GetWindows(Handle, w);
//...
end.


 
YURiQUE ©   (2003-08-02 12:07) [3]

Попробуй так


type
MyArray = array of HWnd;

procedure GetWindows(ParentWnd: HWnd;
var Windows: MyArray);
begin
Inc(WindowsCount);
( Windows,WindowsCount)
Попробуй так


type
MyArray = array of HWnd;

procedure GetWindows(ParentWnd: HWnd;
var Windows: MyArray);
begin
Inc(WindowsCount);
SetLength(Windows,WindowsCount);
end;

//...

var
w: MyArray;
begin
//...
GetWindows(Handle, w);
//...
end.



Страницы: 1 вся ветка

Текущий архив: 2003.10.06;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.023 c
3-18275
S.A.S.
2003-09-15 13:13
2003.10.06
Delphi 7 and FireBird embedded


1-18420
alehan
2003-09-25 14:04
2003.10.06
Record или Class


3-18242
Йурий
2003-09-16 12:12
2003.10.06
Нужно добавить в DBGrid поле не содержащееся в Recordset


1-18287
evgeniy33
2003-09-26 09:24
2003.10.06
как отключить в программе нажатие Alt+F4


1-18378
RoLeX
2003-09-21 21:44
2003.10.06
Помогите чайнику с DateTimePicker