C, Win32 API: painting on a tabcontrol

Feb 21, 2016 at 11:17pm
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 Feb 22, 2016 at 12:23pm
Feb 22, 2016 at 12:40pm
No one to help me out yet?
Feb 22, 2016 at 2:15pm
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.
Feb 22, 2016 at 10:37pm
@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.