Page 1 of 1
How to hide my Window in ALT+TAB?
Posted: Thu Jul 09, 2009 8:21 am
by Phantomas
Hello, small question: how to hide my window in ALT+TAB? Thanks...
Posted: Thu Jul 09, 2009 10:20 am
by Michael Vogel
Short answer:
Code: Select all
SetWindowLong_(WinID,#GWL_EXSTYLE,GetWindowLong_(WinID,#GWL_EXSTYLE)|#WS_EX_TOOLWINDOW);
Posted: Thu Jul 09, 2009 10:35 am
by PB
Wrong answer. Still shows my window in ALT+TAB. Try again.

Posted: Thu Jul 09, 2009 11:34 am
by Phantomas
Michael Vogel, this works, thanks. I cleaned: "|#WS_EX_TOOLWINDOW".
It is a decision reasonable? Whether the same is possible to do facilities of PureBasic (not using WinAPI)?
Hmm... it does not work in my program

.
Posted: Thu Jul 09, 2009 1:05 pm
by SFSxOI
I messed with hiding windows from the task switcher a while back just for the heck of it but didn't get too into it really but heres some of what I remember that worked for me from a little research back then.
There are actually I think only two ways of correctly (might be wrong tho) hiding a window from the task switcher (which is the Alt + Tab):
A. Add an extended window style like with WS_EX_TOOLWINDOW - I believe this is the most correct and accepted way to do this.
B. Make it a child window of another window.
To add an extended window style with WS_EX_TOOLWINDOW, I think is like this (can't remember right now) - i'm not near my PB machine right now:
Code: Select all
SetWindowLong_(hWnd, #GWL_EXSTYLE, (GetWindowLong_(hWnd, #GWL_EXSTYLE) | #WS_EX_TOOLWINDOW) | #WS_EX_APPWINDOW)
You'll have to look up the values of #GWL_EXSTYLE, #WS_EX_TOOLWINDOW, and #WS_EX_APPWINDOW maybe but i want to think that PB has these as constants or at least most of them. This is pretty close to what Michael posted above so I think its right and that he was on the right track. The difference between ours is that I found i had to use #WS_EX_APPWINDOW also.
Posted: Sat Jul 11, 2009 4:01 am
by Rook Zimbabwe
I cannot see why you would WANT or NEED to do this! Spidey sense activated!!!
What is it as of this post... 7 posts and you already want to know how to HIDE your program???
Posted: Mon Jul 13, 2009 9:48 pm
by Micko
Rook what is your problem again ? Awake minds need to know somethings without having twisted ideas that you seem to allude...

i know what i'm talking about, you too i think.

Posted: Tue Jul 14, 2009 3:31 am
by Rook Zimbabwe
Ahhh now we hear from Senegal... Bastion of Computer legality! 7 posts... almost no code posted and wants to know how to hide his "program" in Windows Task Manager...
Are you simply ignorant?
Posted: Tue Jul 14, 2009 4:24 pm
by Micko
you think you are smarter than everyone on this board

? there are very competent people here but are discreet. you are less gifted, and under succeptible informed. I don't know what is behind your person...

Why I answered here, because I wrote a program to protect files and folders, and I ask a question like Phantomas one and you attack me. you should learn what is a forum idea for your knowledge because everyone who come here are not necessary malicious. Maybe that is your case. I have finished with you because you're not better than me

(Everybody here but not you). Kale's book is an exceptionnal tools for PB. (whom I thank from my heart "Jerry djeff ! ----> tanks in senegalese language

" and every PB english forum user ).

Posted: Tue Jul 14, 2009 5:23 pm
by Digital Wargames
Micko: You and I should both learn not to feed the trolls

Posted: Tue Jul 14, 2009 6:22 pm
by Fluid Byte
Digital Wargames wrote:Micko: You and I should both learn not to feed the trolls

Is it possible for you to shut the **** ** at least for 5 Minutes?
Posted: Tue Jul 14, 2009 9:37 pm
by Kale
Micko wrote:Kale's book is an exceptionnal tools for PB. (whom I thank from my heart "Jerry djeff ! ----> tanks in senegalese language

Cheers!
