Code Library

Free Source Code and Program Tips

RSS Feeds

  • Home
  • zero
  • Featured
  • Sitemap
  • About
  • How to change the row height of CListCtrl

    When you want to change the height of CListCtrl, you need to use an owner-draw version of CListCtrl and change the font of the control. But when you change the font of the CListCtrl, the control or its parent window does not get a chance to respecify the height of the rows and the effect will not be taken. The reason is that No WM_MEASUREITEM message is sent to the controls parent window. The...
    More
  • How do I subclass the CListCtrl part of a CListView Class?

    Read this article: How to use an derived CListCtrl in CListView
    More
  • ucoFmlParser, a formular parser use LaTex-like syntax

    Formula Parser Formular Editor, a great control which can edit and display the formular in a very friendly way. For details, please visit the CodeProject website. But how to build the formula is very hard. One can input the formula by the mouse, or build the Formular Tree in program. Both are hard. So I write the ucoFmlParser for the control, which can parse the LaTex-like expression to formular. For...
    More
  • ucoGrid, a great grid control of MFC

    UcoGrid is develped from CGridCtrl, and provides more exciting features. CGridCtrl is a great ctrl developed by Chris Maunder, which can display and edit tabulated data and support custom defined cell type. The lastest version is Here. Many developers have created their new cells and developed new feathers for CGridCtrl. such as, merging and unmerging cells, printing and print preview support,...
    More
  • ucoSpy,a system enhancement tool like spy++

    Introduce ucoSpy is a system enhancement application, used to view various attributes of windows or controls, and copy multiple contents that can’t be normally copied as well, such as passwords hidden as asteroids, and a TreeView. And ucoSpy can give a report the tree relationship of the windows and their child control. Main features ucoSpy is designed with the architecture of plug-in. So everyone...
    More

Deploy JBPM 3.2.2 to Tomcat and Mysql

Oct 26th

Posted by support in Java | 5,410 views

2 comments

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

deploy, jbpm, mysql, tomcat

How to get ClistCtrl item text of another process

Sep 24th

Posted by support in Win32/MFC | 484 views

No comments

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

CListCtrl, How-to, Injection, Process, Win32/MFC

How to catch the events when click on the app icon on taskbar

Sep 24th

Posted by support in Win32/MFC | 78 views

No comments

How to catch the events when you click on the application’s icon on the taskbar?

message, Win32/MFC

30 Great Tips of CListCtrl Program(2)

Jun 3rd

Posted by support in Win32/MFC | 2,792 views

No comments

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)){   

CListCtrl, Tips

30 Great Tips of CListCtrl Program(1)

Jun 3rd

Posted by support in Win32/MFC | 2,334 views

1 comment

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,

CListCtrl, Tips

The Simplest way to change the row height of CListCtrl

Jan 14th

Posted by support in Win32/MFC | 1,526 views

No 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

CListCtrl, Tips, Win32/MFC

Another discussion about stack vs. heap

Jan 14th

Posted by support in General | 1,910 views

No comments

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

heap, memory, stack

Stack vs. Heap

Jan 12th

Posted by support in General | 4,726 views

1 comment

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

heap, Program, statck, STL

How to Adding CTreeCtrl in CListCtrl

Jan 7th

Posted by support in General | 1,697 views

No comments

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

CListCtrl, CTreeCtrl, Win32/MFC

Solution of fatal error RC1004: unexpected end of file found

Nov 6th

Posted by support in General | 4,333 views

11 comments

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.

compile, error, resource, Tips
« First...«45678»10...Last »
    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • General (69)
    • iphone (4)
    • Java (7)
    • Project (3)
    • Script (3)
    • Win32/MFC (32)
    1st actions android API application Bitmap broadcastreceiver CListCtrl CListView Cpp CPropertyPage CTreeCtrl CTreeView CView Debug developed development dll eclipse File game heap hook How-to interaction jbpm message parser PHP Program Project Script sdk service STL study Subclass thread Tips ucosoft user Visual Studio Win32/MFC Win32/MFC WordPress
    • December 2009 (28)
    • November 2009 (9)
    • October 2009 (11)
    • February 2009 (1)
    • January 2009 (1)
    • October 2008 (1)
    • September 2008 (2)
    • June 2008 (2)
    • January 2008 (4)
    • November 2007 (1)
    • October 2007 (12)
    • June 2007 (4)
    • April 2007 (1)
    • March 2007 (3)
    • January 2007 (7)
    • December 2006 (11)
    • November 2006 (20)
    • ucoGrid, a great grid control of MFC (18)
    • Solution of fatal error RC1004: unexpected end of file found (11)
    • ucoFmlParser, a formular parser use LaTex-like syntax (5)
    • How to retrieve the authenticode information (3)
    • sscanf with CString (3)
    • Deploy JBPM 3.2.2 to Tomcat and Mysql (2)
    • Retrieving a class and WMI class (2)
    • Install global hook without dll (2)
    • How to use an derived CListCtrl in CListView (2)
    • How to send/post message to CDocument? (2)
    • Mohammad: Thanks. This saved a big project from some bad bugs.
    • Allen: Thank you very much! It is really a simple yet effective solution!
    • kumar: Im very dissapponted with ur site. It is not at all userfrendly. To understand the code we need...
    • cipcipcia: how can I add to bookrmark your blog? would you like to visit mine? regards!
    • Thomas: Thank you! This helps a lot!
    • David Weber: This did help me the error RC1004: unexpected end of file found persists.
    • Vikas: Hi, Do You try to deploy JBPM 4.0 on Tomcat ? Thanks -Vikas
    • Vikas: Hi, Do You try to deploy JBPM1.0 on Tomcat ? Thanks -Vikas
  • My latest tweets

    Loading tweets...
    Follow me on Twitter!
  • User Login






    • Lost your password?
  • Blogroll

Mystique theme by digitalnature | Powered by WordPress
RSS Feeds XHTML 1.1 Top