Track billable hours (2) | CodeGuru

Track billable hours (2)

The attached file is zipped version of my TimeTracker project. I generated this app because I would like to know how many times I spend in front of the computer and to track track whow many time I spend working on various projects (I’m earning money with my hobby 😉 The best (?) way to […]

Written By
CodeGuru Staff
CodeGuru Staff
Aug 8, 1998
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

The attached file is zipped version of my TimeTracker project. I
generated this app because I would like to know how many times I spend
in front of the computer and to track track whow many time I spend
working on various projects (I’m earning money with my hobby 😉

The best (?) way to implement this was to create an app that resides on
the taskbar notifation area, adding some entry to a log-file at startup
and another entry at exit. One of the problems involved was that on
windows shutdown you get no WM_EXIT command.
That was the outcome of my newsgroup question “Taskbar Status Area
App?”.

The second thing I includes in this project – just for demonstating this
feature – is CListCrtlView based class displaying images in SUBitems.
For this I have changed YOUR code for “full row selection in list
controls” (dont know the exact title now, but you do). The key idea was
adding special texts for bitmaps. I only wanted to implement one bitmap
for a yes value and another vor a no value. So I choose to enter the
text 0]|[ for no and 1]|[ for yes. In OnDrawItem I check, if the text is
of length 4 and if the last three characters are the combination ‘]|[‘
(I choose two anti-matching-brackets to avoid confusing the find-
matching- brace- makros of the IDE) then the first character is
convertet to integer and used to determine which bitmap to draw…

Download Files The zip file is 142K.

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.