tag:blogger.com,1999:blog-5314745381778741517.post7382797851764915648..comments2024-03-27T07:20:43.406+00:00Comments on LazPlanet: How to Show / Hide the Windows Taskbar with LazarusAdnan Shameemhttp://www.blogger.com/profile/03795435968155667026noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5314745381778741517.post-15258671200094568252018-06-20T03:40:03.280+01:002018-06-20T03:40:03.280+01:00Spot on with this write-up, I really assume this w...Spot on with this write-up, I really assume this web site needs far more consideration. I’ll probably be again to learn much more, thanks for that info. <a href="https://online-casinos.us.org" rel="nofollow">online casino games</a>raynnowui21https://www.blogger.com/profile/09781471042378470018noreply@blogger.comtag:blogger.com,1999:blog-5314745381778741517.post-70859728855612181402016-07-22T20:02:49.320+01:002016-07-22T20:02:49.320+01:00thanks 4 sharing really nice info for hide Running...thanks 4 sharing really nice info for <a href="http://www.tricks4me.com/2016/07/how-to-hide-running-programs-from-taskbar.html" rel="nofollow">hide Running Programs from taskbar </a> nice software at on http://tricks4me.comAnonymoushttps://www.blogger.com/profile/01078349039229266177noreply@blogger.comtag:blogger.com,1999:blog-5314745381778741517.post-11887390325418999712015-12-21T17:46:56.566+00:002015-12-21T17:46:56.566+00:00Hello Andreas
Thanks for reading.
I tried the cod...Hello Andreas<br /><br />Thanks for reading.<br />I tried the code to show the taskbar from the article. It works fine. I tried the same code in the article. If you are eager you can try the project download file to get a working copy, then experiment with it.<br /><br />"What is wrong with that and why did you call ShowWindow a second time using FindWindowEx ?"<br />The second ShowWindow is for the Start button. The taskbar and the start button are separate windows. If you hide only one, the other one will be visible. So you'll have to hide both of them while hiding, by using 2 ShowWindow calls. For showing, you'll have to make them both to be shown, with 2 ShowWindow calls.<br /><br />"Why is the comment area in this color? Comments a very hard to read."<br />Thanks for noticing! I was so caught up with writing tutorials that I forgot about the comment section! I'll surely try to fix that after my exam is over.<br /><br />Regards<br />AdnanAdnan Shameemhttps://www.blogger.com/profile/03795435968155667026noreply@blogger.comtag:blogger.com,1999:blog-5314745381778741517.post-48577928839566386342015-12-21T01:41:55.650+00:002015-12-21T01:41:55.650+00:00Hi,
first of all: This was a great work and it hel...Hi,<br />first of all: This was a great work and it help me a lot to do the job. Many thanks for that. What I do not understand:<br />Instead of your code I used <br />"<b>ShowWindow(FindWindow('Shell_TrayWnd',nil), SW_HIDE);</b>" <br />to hide the taskbar and it worked perfect. <br />But when I want to use my code <br />"<b>ShowWindow(FindWindow('Shell_TrayWnd',nil),SW_SHOWNA);</b>" <br />(I have tried this also with only SW_SHOW)<br />to show the taskbar it does not. <br />What is wrong with that and why did you call ShowWindow a second time using FindWindowEx ?<br /><br />Anyway: Now it worked fine!!<br />By the way: Why is the comment area in this color? Comments a very hard to read.<br />Regards Andreas!Andreashttps://www.blogger.com/profile/15496442920481845660noreply@blogger.comtag:blogger.com,1999:blog-5314745381778741517.post-69781113861175084122014-07-27T07:23:30.280+01:002014-07-27T07:23:30.280+01:00@Carmelo
Well, first of all, Button1 code hides t...@Carmelo<br /><br />Well, first of all, Button1 code hides the taskbar and Button2 code shows it again. You need Button2 code to get your taskbar back. Please follow the whole tutorial first.<br /><br />If you want to hide/show the apps list in the taskbar, you will have to use:<br /><br /><b><br />var h:HWND;<br />begin<br /> // get the HWND of Task list<br /> h:= FindWindowEx (FindWindow ('Shell_TrayWnd', nil), 0, 'ReBarWindow32', nil);<br /> h:= FindWindowEx (h, 0, 'MSTaskSwWClass', nil);<br /> h:= FindWindowEx (h, 0, 'MSTaskListWClass', nil);<br /><br /> // to hide<br /> ShowWindow(h, SW_HIDE);<br /><br /> // keep hidden 2 seconds...<br /> sleep(2000); <br /><br /> //to show<br /> ShowWindow(h, SW_SHOW);<br />end;<br /></b><br /><br />This will keep the taskbar buttons hidden for 2 seconds. Change/use the code as you like.<br /><br />The code is for Windows 7. For windows XP you may need to search "ToolbarWindow32" instead of "MSTaskListWClass".<br /><br />Regards<br />Adnan<br /><br />Ref:<br /><a href="http://www.progtown.com/topic1023842-how-to-address-to-a-window-on-a-class-findwindow-does-not-see.html" rel="nofollow">Link 1</a><br /><a href="http://www.freebasic.net/forum/viewtopic.php?f=6&t=20007" rel="nofollow">Link 2</a>Adnan Shameemhttps://www.blogger.com/profile/03795435968155667026noreply@blogger.comtag:blogger.com,1999:blog-5314745381778741517.post-42717954132707384082014-07-24T09:46:09.194+01:002014-07-24T09:46:09.194+01:00Hi!
I want to know how to hide application icon f...Hi!<br /> I want to know how to hide application icon from taskbar and, of course, i have seeing your blog!<br />But there is a problem. I have copy your code in my application and when run it, the task bar was hidden completely, including the start button of windows!! How to solve?<br />RegardsCarmelo Priviterahttps://www.blogger.com/profile/17269109300030706712noreply@blogger.comtag:blogger.com,1999:blog-5314745381778741517.post-50666774727812651632014-03-10T16:09:34.616+00:002014-03-10T16:09:34.616+00:00uses
..... ShellApi, windows;
procedure ShowTra...uses<br /> ..... ShellApi, windows;<br /><br />procedure ShowTrayWnd(Value : boolean);<br />const<br /> ABM_SETSTATE = $000000A;<br /> ABS_AUTOHIDE = 1;<br /> ABS_ALWAYSONTOP = 2;<br />var<br /> data: TAppBarData;<br />begin<br /> if Value then<br /> ShowWindow(FindWindow('Shell_TrayWnd', Nil), SW_HIDE)<br /> else<br /> ShowWindow(FindWindow('Shell_TrayWnd', Nil), SW_SHOWNORMAL);<br /><br /> if (Win32Platform = VER_PLATFORM_WIN32_NT) then<br /> begin<br /> if Value then<br /> begin<br /> data.cbSize := SizeOf(TAppBarData);<br /> data.hWnd := FindWindow('Shell_TrayWnd', '');<br /> data.lParam := ABS_AUTOHIDE;<br /> SHAppBarMessage(ABM_SETSTATE, @data);<br /> end<br /> else<br /> begin<br /> data.cbSize := SizeOf(TAppBarData);<br /> data.hWnd := FindWindow('Shell_TrayWnd', '');<br /> data.lParam := ABS_ALWAYSONTOP;<br /> SHAppBarMessage(ABM_SETSTATE, @data);<br /> end;<br /> end;<br />end;neskvikhttps://www.blogger.com/profile/05960525575439451912noreply@blogger.com