0 Replies - 1678 Views - Last Post: 06 August 2011 - 08:43 PM

#1 GunnerInc   User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 918
  • View blog
  • Posts: 2,358
  • Joined: 28-March 11

Remove Title Bar Icon

Posted 06 August 2011 - 08:43 PM

Description: When registering your window class, set the class hIcon and hIconSm to NULL. Call CreateWindowEx as normal and in the handler for WM_CREATE add the following:Removes Icon from Title bar while keeping system menu and min/max/close buttons using CreateWindowEx
	mov		ebx, hWin
	push	GWL_EXSTYLE
	push	ebx
	call	GetWindowLong
	
	or		eax, WS_EX_DLGMODALFRAME
	
	push	eax
	push	GWL_EXSTYLE
	push	ebx
	call	SetWindowLong
	
	xor		ecx, ecx
	push	SWP_NOSIZE or SWP_NOZORDER or SWP_FRAMECHANGED or SWP_NOMOVE
	push	ecx
	push	ecx
	push	ecx
	push	ecx
	push	ecx
	push	ebx
	call	SetWindowPos


Is This A Good Question/Topic? 0
  • +

Page 1 of 1