1

I run a exe from my application.

I dont want that exe's taskbar icon to be shown on taskbar.

So I first took a HWND of that exe using FindWindow and then I used SetWindowLong function

SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) & ~WS_EX_APPWINDOW)

but this is not removing the icon of that exe from Taskbar. I also used WS_EX_TOOLWINDOW instead of WS_EX_APPWINDOW.

Cyclonecode
  • 29,115
  • 11
  • 72
  • 93
Anup
  • 61
  • 1
  • 9
  • Toolwindow style should be added, not removed. See also http://stackoverflow.com/questions/2262726/determining-if-a-window-has-a-taskbar-button – Adriano Repetti Jun 30 '14 at 08:22
  • This means i should use this function SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) & ~WS_EX_TOOLWINDOW) this way. – Anup Jun 30 '14 at 08:54
  • Why are you trying to remove `WS_EX_TOOLWINDOW`? Do you know what `~` means? Do you understand bitwise operations yet? And did you read the dupe Q and A? – David Heffernan Jun 30 '14 at 10:13

0 Answers0