Free Source Code and Program Tips
Archive for January, 2008
The Simplest way to change the row height of CListCtrl
Jan 14th
In the post “How to change the row height of CListCtrl“, it gives 2 solution example how to change row height or CListCtrl. Hower, it is not the simplest way. The simplest way to change the row height in a CListCtrl is: Display an icon with the desired height. All other ways that I know
Another discussion about stack vs. heap
Jan 14th
In post “Stack vs. Heap“, we have discussed about stack and heap, and given the simple rules on the choice of stack or heap. And today, we give some simple examples for a clear image. Typically, if an element does not need to exist beyond the scope of its variable, you are much better off
Stack vs. Heap
Jan 12th
Here is a simple rule when to define objects on the heap and when to do it on the stack. The stack is much more efficient than the heap. Simple rule: Use the stack when you can. You cannot use the stack if you need the object in other functions. (Stack allocations are deleted when
How to Adding CTreeCtrl in CListCtrl
Jan 7th
In some case, you need such a control as the following figure: It’s a CListCtrl like control, but it binds a CTreeCtrl in the first column. But you can also consider it as a CTreeCtrl and each of the items has the list style. All roads lead to Rome. But in 1999, David Lantsman has