-
tabcontrol-problem
hi there !
i wanna create a tabcontrol with lccwin32.
the problem after declaring everything
like this:
TC_ITEM ItemStruct;
int *pItem;
pItem=&ItemStruct;
and filling the TC_ITEM structure the prog crashes always on this line:
SendMessage(hTab,TCM_INSERTITEM,0,*pItem);
what could be the error ?
or even better has anyone sourcecode for creating a tabcontrol ?
thanks in advance
-
Are you creating the control?
Oh wait! I see the problem:
SendMessage(hTab,TCM_INSERTITEM,0,*pItem);
You really don't even need pItem (which you are doing all wrong anyway)
Do this:
SendMessage(hTab, TCM_INSERTITEM, 0, (LPARAM)ItemStruct);
-
thanks for your reply...
it works now :)