C, Win32 API: painting on a tabcontrol

l want to ask how l can do the following things in a tab control.

1)That is, for instance: In tab1, when a button is clicked, previous text is wiped and new one is written. l had tried but all the texts overlaps and none cleanses off for new texts.

2)How can l erase the content of a tab control when l switch tabs. As in, when tab2 is clicked, what is in tab1 clears off and the things in tab2 only shows.

Thanks.
Last edited on
No one to help me out yet?
Did you check this out?:

https://msdn.microsoft.com/en-us/library/windows/desktop/bb760550%28v=vs.85%29.aspx

Using the appropriate messages you should be able to achieve what you want.
@Coder777: The link help me but l was able to achieve my aim by the documentation the this link: https://msdn.microsoft.com/en-us/library/windows/desktop/dd145219%28v=vs.85%29.aspx.
Thank
Topic archived. No new replies allowed.