` Prevent window from appearing on taskbar (Jim Kane) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Windows API: Prevent window from appearing on taskbar
2003-05-26 -- Jim Kane
 
Newsgroups: softvelocity.products.c55ee in theory it should work as long as the window in your dll and the window in the other application are in the same process which they should be. But you never know what the CW RTL is up to. accroding to msdn to prevent a window from appreaging on a tool bar these are the options. There is also a new window style started with w2k called ws_ex_noactivate that comes into play. It was not arround when the below article was written. Making your window a tool window is probably the easiest or worth a quick try. you might also want to use spy++ that comes with visual C to just display all the window styles so you know what your dealing with. Jim Kane MsdnHOWTO: Prevent a Window from Appearing on the Taskbar Q205158 There are two ways to prevent a window from appearing on the shell's taskbar and in the task list window that appears when you press ALT+TAB. a.. Give the window the WS_EX_TOOLWINDOW extended style, and remove the WS_EX_APPWINDOW style. As a side effect, the window will have a smaller caption than a normal window. b.. Give the window the WS_POPUP style and make it owned by a hidden window. "Hanspeter Stutz" wrote in message news:3ed22ce5$1@news.softvelocity.com... > Hi Jim, > > I don't want to hide the other window and it (the other window) MUST stay on > the taskbar, mine has to be removed from the taskbar. > > The developer of the other program also recommended that I should use the > SetParent API which I've done - pretty funky results, should that really > work? > > TIA > Hanspeter Stutz > > "jim kane" schrieb im Newsbeitrag > news:3ecfb723$1@news.softvelocity.com... > > either that or hide the other window - that will take if off the taskbar > > too. > > jim kane > > "Hanspeter Stutz" wrote in message > > news:3ecf8053@news.softvelocity.com... > > > Hi Jim (G.) > > > > > > Will try that on monday. Sure worth a try... > > > > > > Thanks for jumpin' in > > > Hanspeter Stutz > > > > > > > > > "Jim Gambon" schrieb im Newsbeitrag > > > news:3ecf628f$1@news.softvelocity.com... > > > > Hi Hanspeter, > > > > > > > > > Now I extended my function so OtherProg can pass its handle. I catch > > the > > > > > handle in MyProg..... > > > > > > > > Could you open your window with the owning window as Parent, or, if > you > > > are > > > > using a Clarion "Window", perhaps you could use the API call > "SetParent" > > > > after your window is open. > > > > > > > > Just a thought. > > > > > > > > Regards, > > > > > > > > Jim Gambon > > > > > > > > > > > > > > > > > > > > > > > > > > > >


Today is April 26, 2024, 9:46 pm
This article has been viewed 35105 times.
Google search has resulted in 447 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: