Click to See Complete Forum and Search --> : Associating IDENTIFIER with a ComCtrl dynamically created.


usman999_1
March 4th, 2003, 08:29 AM
Hi *!
I am creating a TreeView Control at run time, something like ...
InitCommonControls();

// Get the dimensions of the parent window's client area, and create
// the tree-view control.
GetClientRect(ghWnd, &rcClient);
hwndTV = CreateWindowEx(0,
WC_TREEVIEW,
"Tree View",
WS_VISIBLE | WS_CHILD ,
0,
0,
rcClient.right,
600,
ghWnd,
NULL,
hInst,
NULL);

Now i want to attach an identifier somelike IDC_MYCONTROL ofcourse earlier defining the IDC_MYCONTROL. I guess i need to pass some constant during the creation of the window of control, but i am not able to figure-out which parameter to set for that????? NEED HELP!!!!
Thanks for ur time.
Regards,
Usman.

usman999_1
March 4th, 2003, 08:54 AM
I got it ppl. that was simple ;)