14 Jan
Posted by support as Win32/MFC 1,758 views, 0 Comments
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 [...]
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 [...]
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 [...]
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 [...]