i want to make something like spoiler button that when onclicked shows text and when clicked again hides it i can only create the text window please help
What you really want to know is windows API, does not matter what programming language are you using.
C++ does not know what a 'button' is, in fact does not know what a computer screen is.
i understand that btw in c++ button,text,texfield are all called window as far as i know and i want to know how to change their properties like what text it shows or where it is stuff like that..