Thread: tabcontrol-problem

  1. #1

    Question tabcontrol-problem

    hi there !

    i wanna create a tabcontrol with lccwin32.
    the problem after declaring everything
    like this:

    TC_ITEM ItemStruct;

    int *pItem;

    and filling the TC_ITEM structure the prog crashes always on this line:

    what could be the error ?
    or even better has anyone sourcecode for creating a tabcontrol ?

    thanks in advance

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    Are you creating the control?

    Oh wait! I see the problem:


    You really don't even need pItem (which you are doing all wrong anyway)

    Do this:

    SendMessage(hTab, TCM_INSERTITEM, 0, (LPARAM)ItemStruct);

  3. #3

    Thumbs up

    thanks for your reply...
    it works now

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM