doing this doesn't work.....niether work :(
SendMessage(Tab, TCM_INSERTITEM, 1, (LPARAM) "Test");
SendMessage(Tab, TCM_SETITEM, 1, (LPARAM) "TEST");
what is the correct way to add tabs (my control is called Tab) :confused:
Printable View
doing this doesn't work.....niether work :(
SendMessage(Tab, TCM_INSERTITEM, 1, (LPARAM) "Test");
SendMessage(Tab, TCM_SETITEM, 1, (LPARAM) "TEST");
what is the correct way to add tabs (my control is called Tab) :confused:
Is "Tab" declared as "HWND" and is it a handle to the tab when you ceate the tab control like
Tab = CreateWindow(...);
Abdul is saying that the variable tab has to be
HWND tab;
and actually be the handle to the tab control.
if it's not, but rather a #define, you need to call GetDlgItem(parentHWnd, Tab); to get the hwnd.
I've already decalred it......thats not my problem
I have the control on my form...I was able to add some tabs, now how do I put text into the tabs :confused:
the LPARAM of both TCM_INSERTITEM and TCM_SETITEM must be a pointer to a TCITEM struct. There is a member to set the item text.