DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: zjhnzgw
今日帖子: 4
在线用户: 16
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 cc_cn (cc_cn) ★☆☆☆☆ -
盒子活跃会员
2004/2/16 8:11:13
标题:
两个程序,分别用vc++和delphi所写,在delphi中怎么知道vc++程序窗体的高度呢? 浏览:1409
加入我的收藏
楼主: 如题
----------------------------------------------
-
作者:
男 fu_qi_ming (fu_qi_ming) ★☆☆☆☆ -
盒子活跃会员
2004/2/16 8:19:20
1楼: 先取得窗口Handle,
然后用GetWindowRect这个API即可。
BOOL GetWindowRect(

    HWND hWnd,  // handle of window
    LPRECT lpRect   // address of structure for window coordinates
   );  
 

Parameters

hWnd

Identifies the window. 

lpRect

Points to a RECT structure that receives the screen coordinates of the upper-left and lower-right corners of the window. 

 

Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行70.3125毫秒 RSS