Click here to Skip to main content

Articles by Joseph M. Newcomer (Articles: 54)

Articles: 54

RSS Feed

Average article rating: 4.32

Button Controls
General
Posted: 16 May 2000   Updated: 14 Oct 2001   Views: 337,412   Rating: 4.73/5    Votes: 35   Popularity: 7.28
Licence: Not specified      Bookmarked: 78   Downloaded: 7,464
An improvement on the CBitmapButton class.
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 124,296   Rating: 4.24/5    Votes: 12   Popularity: 4.38
Licence: Not specified      Bookmarked: 51   Downloaded: 1,478
A button control that autorepeats after a set period of time
Combo & List Boxes
ComboBox Controls
Posted: 16 May 2000   Updated: 16 May 2000   Views: 148,005   Rating: 4.30/5    Votes: 26   Popularity: 5.98
Licence: Not specified      Bookmarked: 30   Downloaded: 1,353
Learn how to programmatically initialize a combo box.
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 149,930   Rating: 4.78/5    Votes: 21   Popularity: 6.29
Licence: Not specified      Bookmarked: 77   Downloaded: 2,520
Learn how to use printf-like functionality to debug your GUI applications.
Listbox Controls
Posted: 27 Mar 2001   Updated: 27 Jun 2001   Views: 130,915   Rating: 4.19/5    Votes: 26   Popularity: 5.76
Licence: Not specified      Bookmarked: 39   Downloaded: 1,539
Taking the pain out of adding a horizontal scrollbar to a listbox.
Dialogs and Windows
Console Programming
Posted: 30 Jun 2008   Updated: 10 Jul 2008   Views: 50,785   Rating: 4.92/5    Votes: 25   Popularity: 6.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 57   Downloaded: 667
When a dynamically-resizable dialog is created, you may find it desirable to have controls resize or rearrange themselves dynamically in response to these changes. This project shows some simple techniques to use when the arrangements are not too complex. It also incorporates two other projects, the
Dialogs
Posted: 5 Apr 2001   Updated: 5 Apr 2001   Views: 103,479   Rating: 4.00/5    Votes: 15   Popularity: 4.37
Licence: Not specified      Bookmarked: 24   Downloaded: 0
You have a lot of dialogs that have a lot of properties in common. You'd like to derive the specialized ones from the general ones. Here's how.
Posted: 15 Oct 2001   Updated: 15 Oct 2001   Views: 194,532   Rating: 3.97/5    Votes: 26   Popularity: 5.38
Licence: Not specified      Bookmarked: 43   Downloaded: 1,153
This is my method of creating dialog-based apps, and in addition, illustrates how to handle the Enter key in an edit control.
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 103,291   Rating: 4.17/5    Votes: 32   Popularity: 6.12
Licence: Not specified      Bookmarked: 46   Downloaded: 0
Learn how to effectively control your dialogs.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 315,147   Rating: 4.97/5    Votes: 100   Popularity: 9.93
Licence: Not specified      Bookmarked: 226   Downloaded: 0
Learn effective methods for managing your user-defined messages.
Posted: 23 May 2000   Updated: 23 May 2000   Views: 99,969   Rating: 4.14/5    Votes: 16   Popularity: 4.75
Licence: Not specified      Bookmarked: 32   Downloaded: 0
Learn how to display a message box from a console application.
Posted: 24 Oct 2000   Updated: 24 Oct 2001   Views: 74,536   Rating: 4.64/5    Votes: 17   Popularity: 5.74
Licence: Not specified      Bookmarked: 38   Downloaded: 0
PreSubclassWindow is a very nice handler to use for certain effects in dialogs.
Skins & Advanced UI
Posted: 24 Oct 2001   Updated: 24 Oct 2001   Views: 74,567   Rating: 3.83/5    Votes: 15   Popularity: 4.50
Licence: Not specified      Bookmarked: 36   Downloaded: 1,030
A class that automatically registers its own Window class.
Document / View
General
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 68,909   Rating: 4.11/5    Votes: 6   Popularity: 3.31
Licence: Not specified      Bookmarked: 18   Downloaded: 702
But WM_TIMER messages are not routable via the standard MFC "command routing" mechanism. This article shows you how to work around this.
Edit Controls
General
Posted: 30 Jun 2008   Updated: 30 Jun 2008   Views: 33,324   Rating: 3.61/5    Votes: 10   Popularity: 3.61
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
Handling complex control interactions when edit controls are involved can lead to problems when EN_CHANGE notifications are generated by the application actually changing the control values. To avoid having to handle EN_CHANGE notifications from CEdit and CRichEdit, this article shows how to derive
Masked and Validating controls
Posted: 3 Nov 2000   Updated: 3 Nov 2000   Views: 103,562   Rating: 3.53/5    Votes: 22   Popularity: 4.74
Licence: Not specified      Bookmarked: 35   Downloaded: 1,255
A very informative, user-oriented validation edit control.
Files and Folders
General
Posted: 4 Apr 2001   Updated: 24 Oct 2001   Views: 213,933   Rating: 4.67/5    Votes: 40   Popularity: 7.48
Licence: Not specified      Bookmarked: 59   Downloaded: 0
The secrets of File Handles and their relationship to File *, CFile, CStdioFile, etc.
Miscellaneous
Custom Controls
Posted: 4 Feb 2002   Updated: 4 Feb 2002   Views: 132,186   Rating: 3.76/5    Votes: 21   Popularity: 4.97
Licence: Not specified      Bookmarked: 22   Downloaded: 1,050
A control for generating colour gradients
Printing
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 191,739   Rating: 4.38/5    Votes: 34   Popularity: 6.20
Licence: Not specified      Bookmarked: 47   Downloaded: 2,539
Learn how to implement print support in your applications.
Applications & Tools
Tools with source code
Posted: 16 May 2000   Updated: 16 May 2000   Views: 113,667   Rating: 3.90/5    Votes: 18   Popularity: 4.90
Licence: Not specified      Bookmarked: 55   Downloaded: 842
Learn how to implement an auto-incrementing build number for your projects.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 38,575   Rating: 3.33/5    Votes: 3   Popularity: 1.59
Licence: Not specified      Bookmarked: 12   Downloaded: 350
A tool to check the consistency of your dialog shortcuts.
Posted: 17 Jun 2005   Updated: 17 Jun 2005   Views: 63,456   Rating: 4.93/5    Votes: 30   Popularity: 7.28
Licence: Not specified      Bookmarked: 55   Downloaded: 1,079
A better Zoomin utility.
Posted: 11 Jul 2005   Updated: 11 Jul 2005   Views: 40,784   Rating: 4.89/5    Votes: 21   Popularity: 6.47
Licence: Not specified      Bookmarked: 57   Downloaded: 1,225
A viewport explorer utility.
GDI
Device Contexts
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 88,337   Rating: 5.00/5    Votes: 27   Popularity: 7.16
Licence: Not specified      Bookmarked: 29   Downloaded: 0
GDI objects selected in a DC can't be deleted - even when you call DeleteObject. This handy class makes these potential leaks a thing of the past.
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 59,459   Rating: 3.84/5    Votes: 32   Popularity: 5.73
Licence: Not specified      Bookmarked: 19   Downloaded: 0
Learn about who owns the GUI definition and pitfalls of GUI programming.
Posted: 16 May 2000   Updated: 31 Mar 2001   Views: 92,797   Rating: 4.28/5    Votes: 32   Popularity: 6.42
Licence: Not specified      Bookmarked: 58   Downloaded: 0
Learn how to effectively draw your dialogs.
General Graphics
General
Posted: 5 Apr 2001   Updated: 5 Apr 2001   Views: 306,902   Rating: 5.00/5    Votes: 38   Popularity: 7.90
Licence: Not specified      Bookmarked: 90   Downloaded: 0
How do you capture the bitmap of a window? This little download shows how, and places the bitmap on the clipboard.
C / C++ Language
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 99,687   Rating: 4.98/5    Votes: 43   Popularity: 8.12
Licence: Not specified      Bookmarked: 63   Downloaded: 0
Attaching and detaching MFC objects to and from Windows objects.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 150,314   Rating: 4.94/5    Votes: 49   Popularity: 8.35
Licence: Not specified      Bookmarked: 87   Downloaded: 0
Learn how to use callbacks and threads with MFC.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 321,320   Rating: 4.32/5    Votes: 114   Popularity: 8.91
Licence: Not specified      Bookmarked: 51   Downloaded: 0
Learn how to refrain from using GetDlgItem.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 366,396   Rating: 4.92/5    Votes: 118   Popularity: 10.19
Licence: Not specified      Bookmarked: 195   Downloaded: 0
Learn the right way to limit your application to run only one instance.
Posted: 5 Jun 2002   Updated: 5 Jun 2002   Views: 100,196   Rating: 3.59/5    Votes: 21   Popularity: 4.73
Licence: Not specified      Bookmarked: 28   Downloaded: 1,075
A simeple editor to make my polygon class a bit more usable.
Posted: 16 May 2000   Updated: 23 Apr 2007   Views: 212,744   Rating: 3.37/5    Votes: 105   Popularity: 6.82
Licence: Not specified      Bookmarked: 42   Downloaded: 0
Learn how to avoid using UpdateData in your modal dialogs.
Libraries
Code Libraries
Posted: 17 May 2000   Updated: 17 May 2000   Views: 53,847   Rating: 3.25/5    Votes: 39   Popularity: 5.17
Licence: The Code Project Open License (CPOL)      Bookmarked: 52   Downloaded: 0
A collection of code examples and essays that I've often posted to the microsoft.public.vc.mfc newsgroup and other places
MFC
General
Posted: 30 Jun 2008   Updated: 30 Jun 2008   Views: 23,568   Rating: 3.49/5    Votes: 12   Popularity: 3.76
Licence: The Code Project Open License (CPOL)      Bookmarked: 16   Downloaded: 0
This essay shows an interface that allows the ::FormatMessage API to be easily accessed from MFC.
Algorithms & Recipes
Algorithms
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 191,102   Rating: 4.38/5    Votes: 32   Popularity: 6.59
Licence: Not specified      Bookmarked: 67   Downloaded: 0
A checksum is a value which is computed which allows you to check the validity of something. Typically, checksums are used in data transmission contexts to detect if the data has been transmitted successfully.
Posted: 24 Oct 2001   Updated: 24 Oct 2001   Views: 74,292   Rating: 3.59/5    Votes: 18   Popularity: 4.51
Licence: Not specified      Bookmarked: 31   Downloaded: 1,285
A class to make handling polygons easier.
DLLs & Assemblies
General
Posted: 7 Nov 2000   Updated: 7 Nov 2000   Views: 142,337   Rating: 4.14/5    Votes: 32   Popularity: 6.24
Licence: Not specified      Bookmarked: 82   Downloaded: 0
Here is the ultimate header file that makes multiple declaration compiler errors a thing of the past.
Hooks
Posted: 31 Mar 2001   Updated: 31 Mar 2001   Views: 1,139,554   Rating: 4.88/5    Votes: 112   Popularity: 9.92
Licence: Not specified      Bookmarked: 304   Downloaded: 9,729
There is a lot of confusion about how to set up and use global hook functions. This essay attempts to clear up some of these issues.
Programming Tips
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 63,404   Rating: 4.68/5    Votes: 33   Popularity: 7.11
Licence: Not specified      Bookmarked: 63   Downloaded: 0
Learn effective methods for logging and debugging your Windows apps.
Posted: 16 May 2000   Updated: 12 Aug 2000   Views: 262,495   Rating: 4.92/5    Votes: 160   Popularity: 10.85
Licence: Not specified      Bookmarked: 133   Downloaded: 0
Learn about the potential pitfalls of code optimization.
Posted: 17 Jul 2001   Updated: 17 Jul 2001   Views: 118,320   Rating: 2.80/5    Votes: 18   Popularity: 3.51
Licence: Not specified      Bookmarked: 24   Downloaded: 0
A simple method of creating a unique name or identifier.
Posted: 4 Feb 2002   Updated: 4 Feb 2002   Views: 129,566   Rating: 2.95/5    Votes: 14   Popularity: 3.33
Licence: Not specified      Bookmarked: 30   Downloaded: 561
An example of one of the most effective uses of the the call to FormatMessage
String handling
General
Posted: 16 May 2000   Updated: 17 May 2000   Views: 568,387   Rating: 4.94/5    Votes: 133   Popularity: 10.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 295   Downloaded: 0
Learn how to effectively use CStrings.
Threads, Processes & IPC
General
Posted: 15 Oct 2001   Updated: 25 Oct 2001   Views: 194,376   Rating: 4.86/5    Votes: 35   Popularity: 7.51
Licence: Not specified      Bookmarked: 66   Downloaded: 2,018
This class allows you to create a child process and receive notification of its output.
Inter-Process Communication
Posted: 16 May 2000   Updated: 16 May 2000   Views: 151,172   Rating: 4.61/5    Votes: 35   Popularity: 7.10
Licence: Not specified      Bookmarked: 101   Downloaded: 1,809
Learn how to create new processes and how to efficiently manage them.
Threading
Posted: 1 Jul 2008   Updated: 1 Jul 2008   Views: 24,093   Rating: 4.88/5    Votes: 20   Popularity: 6.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 36   Downloaded: 240
Fibers are a lightweigtht cooperative threading mechanism, or a coroutine mechanism, depending on how you look at them. Besides providing a very efficient thread-like implementation, fibers allow you to provide "continuations", that is, computations which perform some function, suspend themselves, a
Threads
Posted: 16 May 2000   Updated: 16 May 2000   Views: 319,892   Rating: 4.25/5    Votes: 42   Popularity: 6.90
Licence: Not specified      Bookmarked: 126   Downloaded: 0
Learn tricks on how to create and use a User-Interface thread.
Posted: 16 May 2000   Updated: 5 Apr 2001   Views: 764,453   Rating: 4.93/5    Votes: 216   Popularity: 11.51
Licence: Not specified      Bookmarked: 409   Downloaded: 0
Learn how to create and use worker threads in your applications.
Posted: 14 Jun 2001   Updated: 14 Jun 2001   Views: 251,746   Rating: 4.97/5    Votes: 34   Popularity: 7.62
Licence: Not specified      Bookmarked: 88   Downloaded: 2,615
An introduction to using Semaphores.
Debug Tips
General
Posted: 16 May 2000   Updated: 16 Jul 2001   Views: 389,330   Rating: 4.98/5    Votes: 176   Popularity: 11.18
Licence: Not specified      Bookmarked: 248   Downloaded: 0
Learn about the issues and differences between Debug and Release builds.
Hardware & System
General
Posted: 2 Jun 2000   Updated: 2 Jun 2000   Views: 162,602   Rating: 4.65/5    Votes: 79   Popularity: 8.82
Licence: The Code Project Open License (CPOL)      Bookmarked: 75   Downloaded: 0
Explains misconceptions about timing in Windows.
Posted: 4 Apr 2001   Updated: 4 Apr 2001   Views: 68,946   Rating: 4.69/5    Votes: 35   Popularity: 7.24
Licence: Not specified      Bookmarked: 35   Downloaded: 0
A discussion on the working size of your executable, and why you shouldn't believe those numbers PView or task manager tell you.
Registry
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 70,995   Rating: 4.17/5    Votes: 21   Popularity: 5.41
Licence: Not specified      Bookmarked: 43   Downloaded: 1,241
This represents a handy set of classes I built to ease the pain of dealing with the Registry.
No blogs have been submitted.
No tips have been posted.
No reference articles have been posted.

Joseph M. Newcomer

United States United States
No Biography provided


Advertise | Privacy | Mobile
Web03 | 2.8.150128.1 | Last Updated 29 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid