Wasn't sure what to title this ><

I was wondering how do you change the X / maximize / minimize on a program?

For example;

http://img715.imageshack.us/img715/1631/thisy.png

How would I...