Permalink
Browse files

[Win32] Implement showOnTaskbar

  • Loading branch information...
1 parent f54c6d0 commit fc75b212fe58994cda41498ac92f316586153c18 @milani milani committed Oct 8, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/native_window/native_window_win.cpp
@@ -221,6 +221,15 @@ void NativeWindow::Init(char* url, Settings* settings) {
SetWindowLongPtr(handle_, GWLP_USERDATA, (LONG)this);
+ if (!show_on_taskbar_) {
+ long style= GetWindowLong(handle_, GWL_EXSTYLE);
+ style |= WS_EX_TOOLWINDOW;
+ style &= ~(WS_EX_APPWINDOW);
+ ShowWindow(handle_, SW_HIDE);
+ SetWindowLongPtr(handle_, GWL_EXSTYLE, style);
+ ShowWindow(handle_, SW_HIDE);
+ }
+
if (alpha_) {
SetAlpha(true);
}

0 comments on commit fc75b21

Please sign in to comment.