Thread: Building a tab custom control

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    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!
    Last edited by Mithoric; 03-02-2004 at 09:07 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  2. Tab order in Tab Control
    By Halloko in forum Windows Programming
    Replies: 2
    Last Post: 05-08-2005, 11:08 PM
  3. tab control
    By tyouk in forum Windows Programming
    Replies: 6
    Last Post: 02-07-2005, 11:47 PM
  4. Custom Tab Control
    By PrivatePanic in forum Windows Programming
    Replies: 8
    Last Post: 07-19-2002, 01:23 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM