http://freehoon.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-Titlebar-%EC%97%86%EC%95%A0%EA%B8%B0
위에 참고해 보세요.