Original Post
I am initializing a Win32 window with SDL, grabbing the handle, and creating a tray icon. This all works fine, but when I attempt to change the Exstyle to WS_EX_TOOLWINDOW to hide the button from the taskbar it still shows up (though, it doesn't show up on the Alt+Tab window which is correct). I am using SetWindowLong to change the Exstyle. Also, right clicking the taskbar button doesn't bring up a Context menu either. I am not really sure why it is doing this. Code: SDL_SysWMinfo Info; SDL_VERSION(&Info.version); SDL_GetWMInfo(&Info); SetWindowLong(Info.window, GWL_EXstyle, WS_EX_TOOLWINDOW); WindowHandle = Info.window; //Declared elsewhere... //Other code for Tray, etc... ShowWindow(WindowHandle, SW_HIDE); UpdateWindow(WindowHandle);