[Pidgin] #575: Taskbar button not hidden if docked at startup

Pidgin trac at pidgin.im
Tue Aug 14 10:04:40 EDT 2007


#575: Taskbar button not hidden if docked at startup
------------------------------+---------------------------------------------
  Reporter:  richardcgee      |       Owner:  datallah
      Type:  defect           |      Status:  new     
  Priority:  minor            |   Milestone:  3.0.0   
 Component:  winpidgin (gtk)  |     Version:  2.0     
Resolution:                   |    Keywords:          
   Pending:  0                |  
------------------------------+---------------------------------------------
Comment (by imiganai):

 Did you do it according to [http://msdn2.microsoft.com/en-
 us/library/aa969325.aspx this MSDN article]?[[BR]]
 Hide it first, set the flag, and then show it again.  You don't even need
 to call SetWindowPos in this case.[[BR]]
 I don't have a build environment to compile pidgin with, but the following
 code seems to work to change pidgin into a toolwindow and immediately
 remove the taskbar button:[[BR]]

 {{{
 HWND hwPidgin = FindWindow(L"gdkWindowTopLevel",L"Buddy List");
 ShowWindow(hwPidgin,SW_HIDE);
 SetWindowLong(hwPidgin,GWL_EXSTYLE,GetWindowLong(hwPidgin,GWL_EXSTYLE) |
 WS_EX_TOOLWINDOW);
 ShowWindow(hwPidgin,SW_SHOW);
 }}}

 Note that I originally tried putting the show and hide right after the
 style change+setwindowpos and it did not work.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/575#comment:5>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list