Приветствую, gudzon!
Ну, вот уж от кого не ожидал!
Перекрой ты просто порты, что б не ломились.
Я в класс WinAPI добавил новый метод:
PHP код:
client static container getWindowRect_FLX(int _hWnd)
{
#define.structSize(36)
DLL _winApiDLL = new DLL('USER32');
DLLFunction _getWndRect = new DLLFunction(_winApiDLL, 'GetWindowRect');
Binary struct = new Binary(#structSize);
int x1,x2,y1,y2;
container ret = connull();
;
_getWndRect.returns(ExtTypes::DWord);
_getWndRect.arg(ExtTypes::DWord, ExtTypes::Pointer);
//struct.dWord (0, #structSize);
if (_getWndRect.call(_hWnd, struct))
{
x1 = struct.dWord(0);
x2 = struct.dWord(4);
y1 = struct.dWord(8);
y2 = struct.dWord(12);
ret += x1;
ret += x2;
ret += y1;
ret += y2;
}
return ret;
}
И давайте оставим тему об "окошке в правом нижнем углу", а? Спрашивай - ответим.
С Уважением,
Георгий