Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28794 Discussions

Obtaining a handle to run-time created tab in tab control (IVF)

alb_f
Novice
347 Views

I am testing the insertion and removal of tabs in a tab control at run-time.

Tabs can easily be created/deleted by sending appropriate messages like

 

bRet = SendMessage(hCtl, TCM_INSERTITEM, iTab, LOC(TI))
bRet = SendMessage(hCtl, TCM_DELETEITEM, iTab, 0) 

 where TI contains f.i. the label text. It seems however that these run-time created tabs do not have/obtain a handle?

When I loop over all childs of the tab control, which has 3 predefined tabs, I only see handles to these predefined tabs, not to any existing run-time created tabs. 

How can I obtain/create handles to these run-time created tabs? I am able to set an ID for each tab using the TCIF_PARAM in TCITEM type but that doesn't help much.

Any help is appreciated.

0 Kudos
0 Replies
Reply