Hide border of window, if i know a handle of this window

ぐ巨炮叔叔 提交于 2019-12-13 08:47:07

问题


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.

How I can hide this border, if I known handle of window?


回答1:


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);


来源:https://stackoverflow.com/questions/5788115/hide-border-of-window-if-i-know-a-handle-of-this-window

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!