Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

[Windows API] Removing icon from windows title bar

euthymoseuthymos Member Posts: 1
Hi is there any way I can remove or hide the clickable icon at the top-left corner of the title bar of a Window , without removing the so-called "system menu", that includes the close button - and I don't want to kill it.

I tried with
long flags = GetWindowLong(hwnd, GWL_EXSTYLE);
flags |= WS_EX_DLGMODALFRAME;
SetWindowLong(hwnd, GWL_EXSTYLE, flags);

Because i've read in a forum that this WS_EX_DLGMODALFRAME flags can achive the desided effect but it doesn't work at all.
I've no control on the moment the window is created, 'cause it's done by a dll. So I cannot call CreateWindowEx.

Can you help me?

Comments

Sign In or Register to comment.