CListBox resize

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I have created a ListBox dynamically with following flags

BOOL CTestListBox::PreCreateWindow (CREATESTRUCT& cs)
{
if (!CListBox::PreCreateWindow (cs))
return FALSE;

cs.dwExStyle |= WS_EX_CLIENTEDGE;
cs.dwExStyle |= WS_EX_DLGMODALFRAME | WS_EX_TRANSPARENT;

return TRUE;
}

m_TestListBox.Create(CBS_DROPDOWNLIST | WS_VSCROLL | WS_HSCROLL |
WS_CHILD | WS_VISIBLE | LBS_STANDARD /*| LBS_HASSTRINGS*/ , rect,
this,ID_TEST_LIST_BOX);

This gets popped up, when user press key on a view.

I want the list box to enlarge itself when user had pressed the mouse
bottom and dragged its edeges similar to the list box that gets
displayed when control spacebar is pressed in VS.

What flags do I need to set ? I think it is built in MFC and
developers donot need to code for it.

Thanks

.



Relevant Pages

  • Re: Equivalent code to the bool() built-in function
    ... For that reason alone, bool is useful. ... arbitrary object, but that's not the primary purpose for bool existing. ... Python had no built-in True and False values. ... and they will do arithmetic on those flags; ...
    (comp.lang.python)
  • Which is the best way for holding flags?
    ... I wonder which way would be the best for holding some state flags in terms ... bool flag1: 1; ... bool flag3: 1; ...
    (comp.lang.cpp)
  • Re: [RFC][PATCH] A generic boolean
    ... -C++ and Java fans will treat bool as a green light to the following ... if (!(flags == false)) ... accept stupid bool logic code". ...
    (Linux-Kernel)
  • [PATCH 2/5] ring-buffer: remove unused variable
    ... [Impact: fix compiler warning] ... bool lock_taken = false; ... unsigned long flags; ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: Which is the best way for holding flags?
    ... > I wonder which way would be the best for holding some state flags in terms ... memory use and efficiency are 2 very different things. ... It is undoubtedly faster to read and write bool or perhaps char values ...
    (comp.lang.cpp)