Building a tab custom control
[edit:] Alrighty, I've almost got the drawing working ... but there is one problem at least at the moment.
I'm passing a pointer to the struct TABSTRUCT.
In the drawing code, it has to loop through an array of LPSTR vars in the struct and write the text. But for some reason it only writes 1 (out of the 2 in the array ) and then it crashes ( on the next WM_PAINT )!
[edit2:] If I reduce the number of tabs ( an int variable nTabs ) to 1 it will do it fine until the control is resized! At this point the text becomes garbled!