[Windows API] Removing icon from windows title bar without removing "system menu"

  • Thread starter Thread starter euthymos
  • Start date Start date
E

euthymos

Guest
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?

Continue reading...
 
Back
Top