TCM_INSERTITEM消息在选项卡控件中插入一个新选项卡。您可以明确或通过使用TabCtrl_InsertItem宏发送此消息。
TCM_INSERTITEM
wParam = (WPARAM) (int) iItem; \\index of the new tab
lParam = (LPARAM) (const TC_ITEM FAR*) pitem; \\pointer to struct specifying tab attributes
参数
【的iItem】
新选项卡的索引。
【Pitm】
指向TC_ITEM结构的指针,指定该选项卡的属性。
返回值
如果成功,返回新选项卡的索引,否则返回-1。
也可以看看