Code Library
Free Source Code and Program Tips
Free Source Code and Program Tips
Oct 26th
jBPM, is the full name of the Java Business Process Management, is a lightweight J2EE-based workflow management system. jBPM is an open-source projects, follow the Apache License. On October 18, 2004, jBPM released version 2.0. On the same day it joined the JBoss, and became part the JBoss enterprise middleware platform and named as the
Sep 24th
Question: In some app like WinSpy/Spy++ to make adjustments to list controls. It can correctly set an app’s list control’s modes, alignments, sorting, styles, and extended styles. It can also get the widths of the columns and count of items. The problem is that you cannot seem to get the columns’ names or the item
Jun 3rd
30 Great Tips of CListCtrl Program(1) 8. Get Item Infomation TCHAR szBuf[1024];LVITEM lvi;lvi.iItem = nItemIndex;lvi.iSubItem = 0;lvi.mask = LVIF_TEXT;lvi.pszText = szBuf;lvi.cchTextMax = 1024;m_list.GetItem(&lvi); More infomation: Q173242: Use Masks to Set/Get Item States in CListCtrl 9. Get the header titile of CListCtrl LVCOLUMN lvcol;char str[256];int nColNum;CString strColumnName[MAX_COL];nColNum = 0;lvcol.mask = LVCF_TEXT;lvcol.pszText = str;lvcol.cchTextMax = 256;while(m_list.GetColumn(nColNum, &lvcol)){
Jun 3rd
Without a special note,the listctrl has the default view style of report. 1. CListCtrl style LVS_ICON: for each item displayed great icon LVS_SMALLICON: for each item displayed on the icon LVS_LIST: a show with a small icon on the item LVS_REPORT: Show item details You can inspect the Windows Explorer,
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
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
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
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
Nov 6th
After you modified your reource.h, you may got this error: fatal error RC1004: unexpected end of file found. It’s a bug of the resource compiler. The solution is adding a blank line or two to the end of the file and build again.