 |
|
 |
but how can i create a list dynamicly?
"
m_propList.Create(WS_CHILD|WS_VISIBLE|WS_TABSTOP|WS_VSCROLL|WS_BORDER|
LBS_HASSTRINGS|LBS_OWNERDRAWFIXED,CRect(0,0,100,100), this, 112232);
"
doesnt work
thank you!
|
|
|
|
 |
|
 |
m_propList.Create(WS_CHILD|WS_VISIBLE|LBS_NOTIFY|CBS_OWNERDRAWVARIABLE,CRect(0,0,0,0),this,9898);
style LBS_NOTIFY should be set
|
|
|
|
 |
|
|
 |
|
 |
Hello Runming,
Very nice control.
I was wondering if you could tell me how I can use this control in an SDI application (perhaps in a List View?)?
Thanks a lot,
-----------------
Genaro
|
|
|
|
 |
|
 |
you tree use list control as listbox
|
|
|
|
 |
|
 |
If i want to delete LBS_SORT style, i do like this:
DWORD style = ::GetWindowLong(m_propList.m_hWnd,GWL_STYLE);
style &=~LBS_SORT;
::SetWindowLong(m_propList.m_hWnd,GWL_STYLE,style);
style = ::GetWindowLong(m_propList.m_hWnd,GWL_STYLE);
but it doesn't work!
|
|
|
|
 |
|
 |
It seems that it cannot be done.
When the ListBox is created, the sort/no_sort parameter is used and it cannot be changed after that. See Windows doco on 'List Box Styles'.
"After the control has been created, these styles cannot be modified, except as noted."
|
|
|
|
 |
|
 |
U did great work!!
i need it.
Thank you,guy. i rated 5 for this articles.
|
|
|
|
 |
|
 |
Hi,
I m looking for ListBox with two columns ( say one for ID and other for Name)
How do i approach? Can anybody please suggest something ...
Thanks in advance
Pradeep
|
|
|
|
 |
|
 |
I had a lot of errors during compilation with VS.NET 2003.
Solution in PropertyList.cpp line 32:
#define VALIDPOINT(ptr) \
((int)ptr != NULL && (int)ptr != ~NULL)
Adding the conversation from a pointer to an integer remove all errors.
Mr. S
|
|
|
|
 |
|
 |
Very nice indeed.
A real time-saver (if you want to use it the way it comes), and it's pretty comprehensive (meaning, it contains a lot of Controls features and options).
Best of all, it's both extensible, and customizable.
A '5' from me.
William
Fortes in fide et opere!
|
|
|
|
 |
|
 |
If i want to delete LBS_SORT style, i do like this:
DWORD style = ::GetWindowLong(m_propList.m_hWnd,GWL_STYLE);
style &=~LBS_SORT;
::SetWindowLong(m_propList.m_hWnd,GWL_STYLE,style);
style = ::GetWindowLong(m_propList.m_hWnd,GWL_STYLE);
but it doesn't work!
|
|
|
|
 |