积极答复者
如何获取父窗体的背景色

问题
答案
-
如果你有父窗口的代码,在创建窗口的时候把背景色赋值给子窗体。
否则没有什么办法,背景色不过是一个逻辑概念,实现的方法五花八门,你不可能预料到所有的实现方法。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 Nancy Shao 2010年4月28日 6:29
-
试一下GetBkColor(GetDC(GetParent(hCurrent你当前窗口的句柄)));
0xBAADF00D- 已标记为答案 Nancy Shao 2010年4月28日 6:29
全部回复
-
如果你有父窗口的代码,在创建窗口的时候把背景色赋值给子窗体。
否则没有什么办法,背景色不过是一个逻辑概念,实现的方法五花八门,你不可能预料到所有的实现方法。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 Nancy Shao 2010年4月28日 6:29
-
试一下GetBkColor(GetDC(GetParent(hCurrent你当前窗口的句柄)));
0xBAADF00D- 已标记为答案 Nancy Shao 2010年4月28日 6:29