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: 335,674   Rating: 4.71/5    Votes: 34   Popularity: 5.57
Licence: Not specified      Bookmarked: 77   Downloaded: 7,370
An improvement on the CBitmapButton class.
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 123,965   Rating: 4.24/5    Votes: 12   Popularity: 4.38
Licence: Not specified      Bookmarked: 51   Downloaded: 1,473
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: 147,380   Rating: 4.30/5    Votes: 26   Popularity: 5.98
Licence: Not specified      Bookmarked: 30   Downloaded: 1,346
Learn how to programmatically initialize a combo box.
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 149,333   Rating: 4.78/5    Votes: 21   Popularity: 6.29
Licence: Not specified      Bookmarked: 77   Downloaded: 2,510
Learn how to use printf-like functionality to debug your GUI applications.
Listbox Controls
Posted: 27 Mar 2001   Updated: 27 Jun 2001   Views: 130,109   Rating: 4.19/5    Votes: 26   Popularity: 5.76
Licence: Not specified      Bookmarked: 39   Downloaded: 1,524
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,105   Rating: 4.92/5    Votes: 25   Popularity: 6.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 57   Downloaded: 657
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,060   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: 193,295   Rating: 3.97/5    Votes: 26   Popularity: 5.38
Licence: Not specified      Bookmarked: 43   Downloaded: 1,151
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: 102,705   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: 312,621   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,436   Rating: 4.14/5    Votes: 16   Popularity: 4.75
Licence: Not specified      Bookmarked: 31   Downloaded: 0
Learn how to display a message box from a console application.
Posted: 24 Oct 2000   Updated: 24 Oct 2001   Views: 74,013   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,177   Rating: 3.83/5    Votes: 15   Popularity: 4.50
Licence: Not specified      Bookmarked: 36   Downloaded: 1,027
A class that automatically registers its own Window class.
Document / View
General
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 68,567   Rating: 4.11/5    Votes: 6   Popularity: 3.31
Licence: Not specified      Bookmarked: 17   Downloaded: 692
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: 32,683   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,088   Rating: 3.53/5    Votes: 22   Popularity: 4.74
Licence: Not specified      Bookmarked: 35   Downloaded: 1,248
A very informative, user-oriented validation edit control.
Files and Folders
General
Posted: 4 Apr 2001   Updated: 24 Oct 2001   Views: 212,093   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: 131,616   Rating: 3.76/5    Votes: 21   Popularity: 4.97
Licence: Not specified      Bookmarked: 22   Downloaded: 1,046
A control for generating colour gradients
Printing
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 190,910   Rating: 4.38/5    Votes: 34   Popularity: 6.20
Licence: Not specified      Bookmarked: 47   Downloaded: 2,515
Learn how to implement print support in your applications.
Applications & Tools
Tools with source code
Posted: 16 May 2000   Updated: 16 May 2000   Views: 112,863   Rating: 3.90/5    Votes: 18   Popularity: 4.90
Licence: Not specified      Bookmarked: 55   Downloaded: 841
Learn how to implement an auto-incrementing build number for your projects.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 38,337   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: 62,654   Rating: 4.93/5    Votes: 30   Popularity: 7.28
Licence: Not specified      Bookmarked: 55   Downloaded: 1,067
A better Zoomin utility.
Posted: 11 Jul 2005   Updated: 11 Jul 2005   Views: 40,350   Rating: 4.89/5    Votes: 21   Popularity: 6.47
Licence: Not specified      Bookmarked: 57   Downloaded: 1,208
A viewport explorer utility.
GDI
Device Contexts
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 87,647   Rating: 5.00/5    Votes: 27   Popularity: 7.16
Licence: Not specified      Bookmarked: 28   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,213   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,489   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: 304,249   Rating: 5.00/5    Votes: 38   Popularity: 7.90
Licence: Not specified      Bookmarked: 89   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: 98,964   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: 149,554   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: 318,618   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: 362,797   Rating: 4.92/5    Votes: 118   Popularity: 10.19
Licence: Not specified      Bookmarked: 193   Downloaded: 0
Learn the right way to limit your application to run only one instance.
Posted: 5 Jun 2002   Updated: 5 Jun 2002   Views: 99,744   Rating: 3.59/5    Votes: 21   Popularity: 4.73
Licence: Not specified      Bookmarked: 28   Downloaded: 1,071
A simeple editor to make my polygon class a bit more usable.
Posted: 16 May 2000   Updated: 23 Apr 2007   Views: 212,014   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,611   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,221   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: 189,456   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,009   Rating: 3.59/5    Votes: 18   Popularity: 4.51
Licence: Not specified      Bookmarked: 31   Downloaded: 1,279
A class to make handling polygons easier.
DLLs & Assemblies
General
Posted: 7 Nov 2000   Updated: 7 Nov 2000   Views: 141,709   Rating: 4.14/5    Votes: 32   Popularity: 6.24
Licence: Not specified      Bookmarked: 81   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,131,317   Rating: 4.84/5    Votes: 111   Popularity: 9.90
Licence: Not specified      Bookmarked: 301   Downloaded: 9,579
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,115   Rating: 4.68/5    Votes: 33   Popularity: 7.11
Licence: Not specified      Bookmarked: 62   Downloaded: 0
Learn effective methods for logging and debugging your Windows apps.
Posted: 16 May 2000   Updated: 12 Aug 2000   Views: 261,356   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: 117,684   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: 128,430   Rating: 2.95/5    Votes: 14   Popularity: 3.33
Licence: Not specified      Bookmarked: 30   Downloaded: 552
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: 562,909   Rating: 4.94/5    Votes: 132   Popularity: 10.48
Licence: The Code Project Open License (CPOL)      Bookmarked: 294   Downloaded: 0
Learn how to effectively use CStrings.
Threads, Processes & IPC
General
Posted: 15 Oct 2001   Updated: 25 Oct 2001   Views: 192,789   Rating: 4.86/5    Votes: 35   Popularity: 7.51
Licence: Not specified      Bookmarked: 65   Downloaded: 1,992
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: 150,413   Rating: 4.61/5    Votes: 35   Popularity: 7.10
Licence: Not specified      Bookmarked: 99   Downloaded: 1,799
Learn how to create new processes and how to efficiently manage them.
Threading
Posted: 1 Jul 2008   Updated: 1 Jul 2008   Views: 23,516   Rating: 4.88/5    Votes: 20   Popularity: 6.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 36   Downloaded: 233
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: 318,054   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: 758,774   Rating: 4.94/5    Votes: 214   Popularity: 11.50
Licence: Not specified      Bookmarked: 406   Downloaded: 0
Learn how to create and use worker threads in your applications.
Posted: 14 Jun 2001   Updated: 14 Jun 2001   Views: 250,252   Rating: 4.97/5    Votes: 34   Popularity: 7.62
Licence: Not specified      Bookmarked: 88   Downloaded: 2,600
An introduction to using Semaphores.
Debug Tips
General
Posted: 16 May 2000   Updated: 16 Jul 2001   Views: 386,382   Rating: 4.98/5    Votes: 176   Popularity: 11.18
Licence: Not specified      Bookmarked: 247   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: 161,473   Rating: 4.65/5    Votes: 79   Popularity: 8.82
Licence: The Code Project Open License (CPOL)      Bookmarked: 73   Downloaded: 0
Explains misconceptions about timing in Windows.
Posted: 4 Apr 2001   Updated: 4 Apr 2001   Views: 68,550   Rating: 4.69/5    Votes: 35   Popularity: 7.24
Licence: Not specified      Bookmarked: 34   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,647   Rating: 4.17/5    Votes: 21   Popularity: 5.41
Licence: Not specified      Bookmarked: 42   Downloaded: 1,239
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
Web02 | 2.8.1411022.1 | Last Updated 23 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid