[Windows API] Removing icon from windows title bar

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


Sign In or Register to comment.

Howdy, Stranger!

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


In this Discussion