How to create your own titlebar?

i am a new learner about the JUCE
So maybe i’ll ask a fool question.
How to create a own titlebar with a special style?
for e.g i want to change the minimiseButton and closebutton 's styles,change the background-color of the titlebar
first, i try to draw a rectangle,and add the icons into it,actually it works,but the minimiseButton doesnot work ,and it can’t be dragged.
anyway,i wanna someone can help me.
really really thank u for this

You should look at providing your own LookAndFeel class.
This allows you, if you are not using a native title-bar, to customise almost anything.