隐藏窗口的边框,如果我知道这个窗口的句柄 [英] Hide border of window, if i know a handle of this window

查看:963
本文介绍了隐藏窗口的边框,如果我知道这个窗口的句柄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有OLE Embedded对象Excel图表。并且,当我创建这个对象,我有一些问题在项目中,当我调整窗口大小。使用Spy ++我看到两个过程:Excel 7和Excel 9. Excel 9在右边部分包含垃圾桶,当我调整窗口大小时,我可以看到未定义的行为。
在下面的图片你可以看到一个边框,我想隐藏。

I have already OLE Embedded object Excel Chart. And, when I create this object, i have some problem in project, when I'm resizing window. Using Spy++ I see two process: Excel 7 and Excel 9. Excel 9 contain "trash" in right part, and when I resizing window I can see undefined behaviour. On the following picture you can see a border, which I want to hide.

如何

推荐答案

您可以尝试使用 SetWindowLong(),但我不知道效果是否会

You might try using SetWindowLong(), but I don't know if the effect is going to be what you are looking for.

SetWindowLong(win_handle, GWL_STYLE, GetWindowLong(win_handle, GWL_EXSTYLE) | WS_EX_TOPMOST);
ShowWindow(win_handle, SW_SHOW);

这篇关于隐藏窗口的边框,如果我知道这个窗口的句柄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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