荔园在线
荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀
[回到开始]
[上一篇][下一篇]
发信人: Deny (Deny), 信区: Visual
标 题: [转载] 怎样循环查询对话框上所有控件 cudo (转寄)
发信站: BBS 荔园晨风站 (Sat Dec 23 22:21:01 2000), 转信
【 以下文字转载自 Deny 的信箱 】
【 原文由 denick.bbs@smth.org 所发表 】
发信人: LaoWei (独孤一剑), 信区: VisualC
标 题: Re: 怎样循环查询对话框上所有控件的RECT?
发信站: BBS 水木清华站 (Sat May 9 22:39:49 1998)
【 在 flycloud (飞云) 的大作中提到: 】
: 一个对话框有N个控件,怎样循环获得它们的RECT区域?
: 假设控件的ID未知,N亦未知?我所知道的有GETDLGITEM(ID〕,但必须知道ID,
: 可无法循环?
用API函数
EnumChildWindows
The EnumChildWindows function enumerates the child
windows that belong to the specified parent window
by passing the handle of each child window, in turn,
to an application-defined callback function.
EnumChildWindows continues until the last child window
is enumerated or the callback function returns FALSE.
BOOL EnumChildWindows(
HWND hWndParent, // handle to parent window
WNDENUMPROC lpEnumFunc, // pointer to callback function
LPARAM lParam // application-defined value
);
Parameters
hWndParent
Identifies the parent window whose child windows
are to be enumerated.
lpEnumFunc
Points to an application-defined callback function.
For more information about the callback function,
see the EnumChildProc callback function.
lParam
Specifies a 32-bit, application-defined value to be
passed to the callback function.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
--
主页: http://www.nease.net/~jianlin/
http://www.geocities.com/CollegePark/Quad/7895/
最近geocities好像对国内不通,所以无法直接连接.
如果想去geocities的话,就必须使用国外的代理.
如: proxy.golden.net:3000 就可以很方便地连接了
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 162.105.201.226]
--
※ 转载:·BBS 荔园晨风站 bbs.szu.edu.cn·[FROM: 192.168.1.119]
[回到开始]
[上一篇][下一篇]
荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店