Advertisement
2002VB Windows System Services #17213

Disable the Windows Taskbar

Disable the Taskbar

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
3. Add a Command Button control to Form1. Command1 is created by
default. Set its Caption property to "Hide".
4. Add the following code to the Click event for Command1.
Private Sub Command1_Click()
hwnd1 = FindWindow("Shell_traywnd", "")
Call SetWindowPos(hwnd1, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
End Sub
5. Add a second Command Button control to Form1. Command2 is created by 
default. Set its Caption property to "Show".
6. Add the following code to the Click event for Command2.
Private Sub Command2_Click()
Call SetWindowPos(hwnd1, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
End Sub
<p><font face="Verdana">Second, what do they do. Well, I might as well address
this issue as well as what they are at the same time. Pointers are what they
sound like...pointers. They point to locations in memory. Picture this: a big
jar that holds one thing, the name of another jar. In the other jar is the value
of an integer. The jars are memory locations. The jar that holds the name of the
other jar is a pointer. It points to the other drawer.</font></p>
<p><font face="Verdana">     How can you use this? Well,
look at this little piece of code:</font></p>
<p><font face="Verdana">#include <iostream.h></font></p>
<p><font face="Verdana">void main()</font></p>
<p><font face="Verdana">{<br>
int x;<br>
int *pointer;<br>
<br>
pointer=&x;<br>
cin>>x;<br>
cout<<*pointer;</font></p>
<p><font face="Verdana">}</font></p>
<p><font face="Verdana">     Guess what! The cout outputs
the value in x. Why is that? Well, look at the code. The integer is called x.
Then a pointer to an integer is defined as pointer. The astrick(*) symbol means
that it is a pointer. Then I give the memory location of x to pointer by using
the ampersand(&) symbol. It gives the memory location of the variable it is
in front of. For example, if the jar that had an integer had a ampersand in it
it would output its name, or location.  Then the user inputs the value for
x. Then the cout uses the * to put the value stored in the memory location of
pointer. Huh? Picture the jars again. If the jar with the name of the other jar
in it had a * in front of it it would give the value stored in the jar with the
same name as the one in the jar with the name. It's not too hard, the * gives
the value in the location. The unastricked gives the memory location.</font></p>
<p><font face="Verdana">     I hope this has been at least
an interesting introduction to pointers. I do not suggest that you play around
with them too much as you can do unpleasant things on your computer, but you now
should have a better understand of what they are.</font></p>
Original Comments (3)
Recovered from Wayback Machine