Do I need to add code in Resource.h and pDX(...) manually.
It is giving undeclared identifier.
Well you can create a CCheckListBox like this:
DWORD Style = LBS_HASSTRINGS|LBS_OWNERDRAWFIXED|WS_CHILD|WS_VISIBLE|..Any
other style you need;
m_CheckListBox.Create(Style,Rect,this,IDC_MYLISTCTRL);
If you want something easier, you can put a listbox on your dialog, set
it's
visible flag to false, and map a variable to it (lets call it m_ListBox),
change the type from CListBox to CCheckListBox.
When every you want to display the Listbox call its ShowWindow method;
And as far as resizing goes, as it was mentioned in the other thread you
can
resize any window by calling its SetWindowPos method.
AliR.
"Manjree Garg" <garg@newsgroup.nospam> wrote in message
news:AAC98FD0-56AD-4AC9-8847-899BAB418647@microsoft.com...
Hi Charles
How can I use CcheckListCtrl's Create function to create a
CheckListControl box at runtime on some event?
I want to display the result's of a search in Search Dialog box by
increasing its size and creating CheckListCtrl to display the results
in
it
when Search button is clicked.
Thanks.
Manjree