问题
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