Free Source Code and Program Tips
Posts tagged Tips
30 Great Tips of CListCtrl Program(2)
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)){
30 Great Tips of CListCtrl Program(1)
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,
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
Solution of fatal error RC1004: unexpected end of file found
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.
How to launch an Application with Admin privileges in VISTA
Mar 8th
When you develop some admin utility, which will need the administrator privilege to configures some H/W connected ove LAN, etc. And you will found that the application is running propertyly in XP just by a double click of the mouse, where as in VISTA if you run it as Administrator then only running. So, how
How to Get the Primary Domain name
Jan 3rd
In gina, the system will list the domain name of the current system. How to get the primary domain name in your program? From the released the Windows2000 and NT source code, you can get the code of gina. It locate on \win2k\private\windows\gina\winlogon\usrpro.c. Here is the code:
How to enable “profile” in Visual C++ 6.0
Dec 28th
From MSDN: The profiler is an analysis tool that you can use to examine the run-time behavior of your programs. By using profiler information, you can determine which sections of your code are working efficiently. The profiler can produce information showing areas of code that are not being executed or that are taking a long