来自第二个实例的子窗口中的问题 [英] Issue in the child window from second instance

查看:90
本文介绍了来自第二个实例的子窗口中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天。

我创建了一个带子窗口的win32应用程序。在第一次发布时,它工作正常。即,我能够查看我的主要&子窗口正如预期的那样工作正常。

I created a win32 application with a child window. During the first launch it is working fine. i.e, I am able to view my main & child window as expected and it is working fine.

但是,从第二个实例开始(即同一系统中的多个实例),我面临的问题是我的子窗口的客户端显示在左边我的显示器的顶部(0,0)。

But, from the second instance onwards (i.e multiple instances in the same system), I am facing the problem my child window's client displaying at left top (0,0) of my monitor.

你能不能帮助我找到根本原因。

Can you pls help me the to find the root cause.

提前致谢。

推荐答案

欢迎来到这里。

对于顶级窗口,位置和尺寸相对于屏幕的左上角。对于子窗口,它们相对于父窗口的客户区域的左上角。

For a top-level window, the position and dimensions are relative to the upper-left corner of the screen. For a child window, they are relative to the upper-left corner of the parent window's client area.

你介意提供一个可以重现你的问题的项目吗?

Would you mind provide a project that can reproduce your issue?

祝你有愉快的一天。

问候,


这篇关于来自第二个实例的子窗口中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆