Click here to Skip to main content
12,888,170 members (48,976 online)

Articles by Joseph M. Newcomer (Articles: 54)

Articles: 54

RSS Feed

Average article rating: 4.35

Button Controls
General
Posted: 16 May 2000   Updated: 14 Oct 2001   Views: 354,051   Rating: 4.76/5    Votes: 36   Popularity: 7.42
Licence: Not specified      Bookmarked: 78   Downloaded: 8,247
An improvement on the CBitmapButton class.
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 128,192   Rating: 4.45/5    Votes: 13   Popularity: 4.72
Licence: Not specified      Bookmarked: 51   Downloaded: 1,572
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: 154,992   Rating: 4.30/5    Votes: 26   Popularity: 5.98
Licence: Not specified      Bookmarked: 30   Downloaded: 1,391
Learn how to programmatically initialize a combo box.
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 156,552   Rating: 4.78/5    Votes: 21   Popularity: 6.29
Licence: Not specified      Bookmarked: 79   Downloaded: 2,725
Learn how to use printf-like functionality to debug your GUI applications.
Listbox Controls
Posted: 27 Mar 2001   Updated: 27 Jun 2001   Views: 138,476   Rating: 4.19/5    Votes: 26   Popularity: 5.76
Licence: Not specified      Bookmarked: 39   Downloaded: 1,620
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: 59,064   Rating: 4.81/5    Votes: 27   Popularity: 6.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 57   Downloaded: 877
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: 108,343   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: 201,042   Rating: 3.97/5    Votes: 26   Popularity: 5.38
Licence: Not specified      Bookmarked: 43   Downloaded: 1,178
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: 345,735   Rating: 4.97/5    Votes: 101   Popularity: 9.95
Licence: Not specified      Bookmarked: 235   Downloaded: 0
Learn effective methods for managing your user-defined messages.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 106,441   Rating: 4.56/5    Votes: 33   Popularity: 6.33
Licence: Not specified      Bookmarked: 46   Downloaded: 0
Learn how to effectively control your dialogs.
Posted: 23 May 2000   Updated: 23 May 2000   Views: 105,201   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: 79,892   Rating: 4.94/5    Votes: 18   Popularity: 5.83
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: 78,180   Rating: 3.83/5    Votes: 15   Popularity: 4.50
Licence: Not specified      Bookmarked: 36   Downloaded: 1,098
A class that automatically registers its own Window class.
Document / View
General
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 71,932   Rating: 4.11/5    Votes: 6   Popularity: 3.31
Licence: Not specified      Bookmarked: 18   Downloaded: 719
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: 39,432   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: 110,087   Rating: 3.53/5    Votes: 22   Popularity: 4.74
Licence: Not specified      Bookmarked: 35   Downloaded: 1,370
A very informative, user-oriented validation edit control.
Files and Folders
General
Posted: 4 Apr 2001   Updated: 24 Oct 2001   Views: 237,191   Rating: 4.67/5    Votes: 40   Popularity: 7.48
Licence: Not specified      Bookmarked: 60   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: 136,821   Rating: 5.00/5    Votes: 22   Popularity: 5.05
Licence: Not specified      Bookmarked: 22   Downloaded: 1,132
A control for generating colour gradients
Printing
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 202,392   Rating: 4.38/5    Votes: 34   Popularity: 6.20
Licence: Not specified      Bookmarked: 47   Downloaded: 2,686
Learn how to implement print support in your applications.
Applications & Tools
Tools with source code
Posted: 16 May 2000   Updated: 16 May 2000   Views: 120,344   Rating: 3.90/5    Votes: 18   Popularity: 4.90
Licence: Not specified      Bookmarked: 55   Downloaded: 869
Learn how to implement an auto-incrementing build number for your projects.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 40,400   Rating: 3.33/5    Votes: 3   Popularity: 1.59
Licence: Not specified      Bookmarked: 12   Downloaded: 360
A tool to check the consistency of your dialog shortcuts.
Posted: 17 Jun 2005   Updated: 17 Jun 2005   Views: 67,850   Rating: 4.93/5    Votes: 30   Popularity: 7.28
Licence: Not specified      Bookmarked: 55   Downloaded: 1,142
A better Zoomin utility.
Posted: 11 Jul 2005   Updated: 11 Jul 2005   Views: 44,510   Rating: 4.89/5    Votes: 21   Popularity: 6.47
Licence: Not specified      Bookmarked: 56   Downloaded: 1,370
A viewport explorer utility.
GDI
Device Contexts
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 95,661   Rating: 5.00/5    Votes: 27   Popularity: 7.16
Licence: Not specified      Bookmarked: 30   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: 62,170   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: 96,633   Rating: 4.28/5    Votes: 32   Popularity: 6.42
Licence: Not specified      Bookmarked: 59   Downloaded: 0
Learn how to effectively draw your dialogs.
General Graphics
General
Posted: 5 Apr 2001   Updated: 5 Apr 2001   Views: 338,369   Rating: 5.00/5    Votes: 41   Popularity: 8.06
Licence: Not specified      Bookmarked: 91   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: 108,305   Rating: 4.98/5    Votes: 45   Popularity: 8.23
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: 160,693   Rating: 4.94/5    Votes: 50   Popularity: 8.39
Licence: Not specified      Bookmarked: 91   Downloaded: 0
Learn how to use callbacks and threads with MFC.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 351,246   Rating: 2.50/5    Votes: 115   Popularity: 5.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 51   Downloaded: 0
Learn how to refrain from using GetDlgItem.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 407,659   Rating: 4.92/5    Votes: 118   Popularity: 10.19
Licence: Not specified      Bookmarked: 198   Downloaded: 0
Learn the right way to limit your application to run only one instance.
Posted: 2 Jun 2000   Updated: 2 Jun 2000   Views: 170,941   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: 71,840   Rating: 4.69/5    Votes: 35   Popularity: 7.24
Licence: The Code Project Open License (CPOL)      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.
Posted: 5 Jun 2002   Updated: 5 Jun 2002   Views: 105,503   Rating: 3.59/5    Votes: 21   Popularity: 4.73
Licence: Not specified      Bookmarked: 28   Downloaded: 1,228
A simeple editor to make my polygon class a bit more usable.
Posted: 16 May 2000   Updated: 23 Apr 2007   Views: 224,804   Rating: 3.43/5    Votes: 106   Popularity: 6.83
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: 56,251   Rating: 3.25/5    Votes: 39   Popularity: 5.17
Licence: The Code Project Open License (CPOL)      Bookmarked: 54   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: 27,634   Rating: 3.57/5    Votes: 13   Popularity: 3.88
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.
Win32/64 SDK & OS
Windows General
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 74,832   Rating: 4.17/5    Votes: 21   Popularity: 5.41
Licence: Not specified      Bookmarked: 44   Downloaded: 1,319
This represents a handy set of classes I built to ease the pain of dealing with the Registry.
Algorithms & Recipes
Algorithms
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 212,505   Rating: 4.38/5    Votes: 32   Popularity: 6.59
Licence: Not specified      Bookmarked: 69   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: 78,291   Rating: 4.25/5    Votes: 19   Popularity: 4.59
Licence: Not specified      Bookmarked: 31   Downloaded: 1,358
A class to make handling polygons easier.
DLLs & Assemblies
General
Posted: 7 Nov 2000   Updated: 7 Nov 2000   Views: 150,384   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,237,578   Rating: 4.89/5    Votes: 117   Popularity: 10.11
Licence: Not specified      Bookmarked: 321   Downloaded: 11,526
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: 65,933   Rating: 4.68/5    Votes: 33   Popularity: 7.11
Licence: Not specified      Bookmarked: 64   Downloaded: 0
Learn effective methods for logging and debugging your Windows apps.
Posted: 16 May 2000   Updated: 12 Aug 2000   Views: 276,372   Rating: 4.93/5    Votes: 161   Popularity: 10.87
Licence: Not specified      Bookmarked: 134   Downloaded: 0
Learn about the potential pitfalls of code optimization.
Posted: 17 Jul 2001   Updated: 17 Jul 2001   Views: 125,630   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: 141,207   Rating: 3.33/5    Votes: 15   Popularity: 3.47
Licence: Not specified      Bookmarked: 30   Downloaded: 620
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: 641,640   Rating: 4.95/5    Votes: 137   Popularity: 10.56
Licence: The Code Project Open License (CPOL)      Bookmarked: 309   Downloaded: 0
Learn how to effectively use CStrings.
Threads, Processes & IPC
General
Posted: 15 Oct 2001   Updated: 25 Oct 2001   Views: 204,643   Rating: 4.87/5    Votes: 36   Popularity: 7.57
Licence: Not specified      Bookmarked: 69   Downloaded: 2,238
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: 158,676   Rating: 4.61/5    Votes: 35   Popularity: 7.10
Licence: Not specified      Bookmarked: 103   Downloaded: 1,927
Learn how to create new processes and how to efficiently manage them.
Threading
Posted: 1 Jul 2008   Updated: 1 Jul 2008   Views: 31,686   Rating: 4.91/5    Votes: 23   Popularity: 6.68
Licence: The Code Project Open License (CPOL)      Bookmarked: 40   Downloaded: 350
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: 344,296   Rating: 4.25/5    Votes: 42   Popularity: 6.90
Licence: Not specified      Bookmarked: 131   Downloaded: 0
Learn tricks on how to create and use a User-Interface thread.
Posted: 16 May 2000   Updated: 5 Apr 2001   Views: 856,351   Rating: 4.93/5    Votes: 219   Popularity: 11.54
Licence: Not specified      Bookmarked: 420   Downloaded: 0
Learn how to create and use worker threads in your applications.
Posted: 14 Jun 2001   Updated: 14 Jun 2001   Views: 273,437   Rating: 4.97/5    Votes: 34   Popularity: 7.62
Licence: Not specified      Bookmarked: 90   Downloaded: 2,833
An introduction to using Semaphores.
Debug Tips
General
Posted: 16 May 2000   Updated: 16 Jul 2001   Views: 423,763   Rating: 4.98/5    Votes: 181   Popularity: 11.25
Licence: Not specified      Bookmarked: 252   Downloaded: 0
Learn about the issues and differences between Debug and Release builds.
No blogs have been submitted.
No tips have been posted.
No reference articles have been posted.

Joseph M. Newcomer
Retired
United States United States
PhD, Computer Science, Carnegie Mellon University, 1975
Certificate in Forensic Science and the Law, Duquesne University, 2008

Co-Author, [i]Win32 Programming[/i]


Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 26 Apr 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid