Click here to Skip to main content
11,645,087 members (70,713 online)

Articles by Joseph M. Newcomer (Articles: 54)

Articles: 54

RSS Feed

Average article rating: 4.31

Button Controls
General
Posted: 16 May 2000   Updated: 14 Oct 2001   Views: 340,930   Rating: 4.76/5    Votes: 36   Popularity: 7.42
Licence: Not specified      Bookmarked: 78   Downloaded: 7,698
An improvement on the CBitmapButton class.
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 125,010   Rating: 4.24/5    Votes: 12   Popularity: 4.38
Licence: Not specified      Bookmarked: 51   Downloaded: 1,511
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: 149,580   Rating: 4.30/5    Votes: 26   Popularity: 5.98
Licence: Not specified      Bookmarked: 30   Downloaded: 1,368
Learn how to programmatically initialize a combo box.
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 151,210   Rating: 4.78/5    Votes: 21   Popularity: 6.29
Licence: Not specified      Bookmarked: 77   Downloaded: 2,564
Learn how to use printf-like functionality to debug your GUI applications.
Listbox Controls
Posted: 27 Mar 2001   Updated: 27 Jun 2001   Views: 132,810   Rating: 4.19/5    Votes: 26   Popularity: 5.76
Licence: Not specified      Bookmarked: 39   Downloaded: 1,565
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: 52,850   Rating: 4.81/5    Votes: 26   Popularity: 6.96
Licence: The Code Project Open License (CPOL)      Bookmarked: 58   Downloaded: 722
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: 104,550   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: 195,670   Rating: 3.97/5    Votes: 26   Popularity: 5.38
Licence: Not specified      Bookmarked: 43   Downloaded: 1,162
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: 321,041   Rating: 4.97/5    Votes: 100   Popularity: 9.93
Licence: Not specified      Bookmarked: 229   Downloaded: 0
Learn effective methods for managing your user-defined messages.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 103,990   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: 101,160   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: 75,940   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: 75,490   Rating: 3.83/5    Votes: 15   Popularity: 4.50
Licence: Not specified      Bookmarked: 36   Downloaded: 1,052
A class that automatically registers its own Window class.
Document / View
General
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 69,510   Rating: 4.11/5    Votes: 6   Popularity: 3.31
Licence: Not specified      Bookmarked: 18   Downloaded: 708
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: 34,620   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: 104,760   Rating: 3.53/5    Votes: 22   Popularity: 4.74
Licence: Not specified      Bookmarked: 35   Downloaded: 1,278
A very informative, user-oriented validation edit control.
Files and Folders
General
Posted: 4 Apr 2001   Updated: 24 Oct 2001   Views: 218,321   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: 133,310   Rating: 3.76/5    Votes: 21   Popularity: 4.97
Licence: Not specified      Bookmarked: 22   Downloaded: 1,077
A control for generating colour gradients
Printing
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 193,850   Rating: 4.38/5    Votes: 34   Popularity: 6.20
Licence: Not specified      Bookmarked: 47   Downloaded: 2,582
Learn how to implement print support in your applications.
Applications & Tools
Tools with source code
Posted: 16 May 2000   Updated: 16 May 2000   Views: 114,860   Rating: 3.90/5    Votes: 18   Popularity: 4.90
Licence: Not specified      Bookmarked: 55   Downloaded: 849
Learn how to implement an auto-incrementing build number for your projects.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 38,990   Rating: 3.33/5    Votes: 3   Popularity: 1.59
Licence: Not specified      Bookmarked: 12   Downloaded: 351
A tool to check the consistency of your dialog shortcuts.
Posted: 17 Jun 2005   Updated: 17 Jun 2005   Views: 64,630   Rating: 4.93/5    Votes: 30   Popularity: 7.28
Licence: Not specified      Bookmarked: 55   Downloaded: 1,099
A better Zoomin utility.
Posted: 11 Jul 2005   Updated: 11 Jul 2005   Views: 41,550   Rating: 4.89/5    Votes: 21   Popularity: 6.47
Licence: Not specified      Bookmarked: 56   Downloaded: 1,263
A viewport explorer utility.
GDI
Device Contexts
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 89,710   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: 59,980   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: 93,480   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: 312,440   Rating: 5.00/5    Votes: 40   Popularity: 8.01
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: 101,760   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: 152,510   Rating: 4.94/5    Votes: 49   Popularity: 8.35
Licence: Not specified      Bookmarked: 88   Downloaded: 0
Learn how to use callbacks and threads with MFC.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 327,000   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: 375,881   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: 2 Jun 2000   Updated: 2 Jun 2000   Views: 164,680   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: 69,680   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: 101,180   Rating: 3.59/5    Votes: 21   Popularity: 4.73
Licence: Not specified      Bookmarked: 28   Downloaded: 1,107
A simeple editor to make my polygon class a bit more usable.
Posted: 16 May 2000   Updated: 23 Apr 2007   Views: 215,240   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: 54,320   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: 24,510   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.
Win32/64 SDK & OS
Windows General
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 71,640   Rating: 4.17/5    Votes: 21   Popularity: 5.41
Licence: Not specified      Bookmarked: 44   Downloaded: 1,248
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: 196,142   Rating: 4.38/5    Votes: 32   Popularity: 6.59
Licence: Not specified      Bookmarked: 68   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: 75,120   Rating: 4.25/5    Votes: 19   Popularity: 4.59
Licence: Not specified      Bookmarked: 31   Downloaded: 1,303
A class to make handling polygons easier.
DLLs & Assemblies
General
Posted: 7 Nov 2000   Updated: 7 Nov 2000   Views: 143,880   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,160,380   Rating: 4.88/5    Votes: 112   Popularity: 9.92
Licence: Not specified      Bookmarked: 309   Downloaded: 10,188
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,910   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: 264,980   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: 119,960   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: 132,460   Rating: 2.95/5    Votes: 14   Popularity: 3.33
Licence: Not specified      Bookmarked: 30   Downloaded: 583
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: 584,610   Rating: 4.94/5    Votes: 135   Popularity: 10.53
Licence: The Code Project Open License (CPOL)      Bookmarked: 300   Downloaded: 0
Learn how to effectively use CStrings.
Threads, Processes & IPC
General
Posted: 15 Oct 2001   Updated: 25 Oct 2001   Views: 197,070   Rating: 4.86/5    Votes: 35   Popularity: 7.51
Licence: Not specified      Bookmarked: 66   Downloaded: 2,066
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: 153,040   Rating: 4.61/5    Votes: 35   Popularity: 7.10
Licence: Not specified      Bookmarked: 101   Downloaded: 1,841
Learn how to create new processes and how to efficiently manage them.
Threading
Posted: 1 Jul 2008   Updated: 1 Jul 2008   Views: 26,140   Rating: 4.88/5    Votes: 20   Popularity: 6.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 38   Downloaded: 265
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: 325,260   Rating: 4.25/5    Votes: 42   Popularity: 6.90
Licence: Not specified      Bookmarked: 129   Downloaded: 0
Learn tricks on how to create and use a User-Interface thread.
Posted: 16 May 2000   Updated: 5 Apr 2001   Views: 781,120   Rating: 4.93/5    Votes: 216   Popularity: 11.51
Licence: Not specified      Bookmarked: 413   Downloaded: 0
Learn how to create and use worker threads in your applications.
Posted: 14 Jun 2001   Updated: 14 Jun 2001   Views: 256,160   Rating: 4.97/5    Votes: 34   Popularity: 7.62
Licence: Not specified      Bookmarked: 90   Downloaded: 2,668
An introduction to using Semaphores.
Debug Tips
General
Posted: 16 May 2000   Updated: 16 Jul 2001   Views: 395,510   Rating: 4.98/5    Votes: 177   Popularity: 11.20
Licence: Not specified      Bookmarked: 248   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.150731.1 | Last Updated 3 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid