Hi,
I am trying unsuccessfully to remove the X icon from a window. I can make it unavailable, greyed out but cannot actually remove the icon.
HMENU hMenu = GetSystemMenu( Handle, FALSE );
I tried:
RemoveMenu(hMenu , SC_CLOSE , MF_BYCOMMAND);
DrawMenuBar( Handle );
I tried:
DeleteMenu( hMenu, SC_CLOSE , MF_BYCOMMAND);
DrawMenuBar( Handle );
It makes the clicking on the X un-operational but does not remove the icon.
Any hints,
Tx,
SVC
Comments
http://msdn.microsoft.com/en-us/visualc/bb838685.aspx