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: 331,912   Rating: 4.71/5    Votes: 34   Popularity: 5.57
Licence: Not specified      Bookmarked: 77   Downloaded: 7,185
An improvement on the CBitmapButton class.
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 123,208   Rating: 4.24/5    Votes: 12   Popularity: 4.38
Licence: Not specified      Bookmarked: 51   Downloaded: 1,454
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: 145,953   Rating: 4.30/5    Votes: 26   Popularity: 5.98
Licence: Not specified      Bookmarked: 30   Downloaded: 1,336
Learn how to programmatically initialize a combo box.
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 147,837   Rating: 4.78/5    Votes: 21   Popularity: 6.29
Licence: Not specified      Bookmarked: 77   Downloaded: 2,493
Learn how to use printf-like functionality to debug your GUI applications.
Listbox Controls
Posted: 27 Mar 2001   Updated: 27 Jun 2001   Views: 128,493   Rating: 4.19/5    Votes: 26   Popularity: 5.76
Licence: Not specified      Bookmarked: 39   Downloaded: 1,487
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: 48,716   Rating: 4.92/5    Votes: 25   Popularity: 6.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 56   Downloaded: 635
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: 102,340   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: 191,748   Rating: 3.97/5    Votes: 26   Popularity: 5.38
Licence: Not specified      Bookmarked: 43   Downloaded: 1,148
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: 101,977   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: 308,443   Rating: 4.97/5    Votes: 100   Popularity: 9.93
Licence: Not specified      Bookmarked: 225   Downloaded: 0
Learn effective methods for managing your user-defined messages.
Posted: 23 May 2000   Updated: 23 May 2000   Views: 98,071   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: 72,879   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: 73,495   Rating: 3.83/5    Votes: 15   Popularity: 4.50
Licence: Not specified      Bookmarked: 35   Downloaded: 1,016
A class that automatically registers its own Window class.
Document / View
General
Posted: 14 Apr 2002   Updated: 14 Apr 2002   Views: 67,850   Rating: 4.11/5    Votes: 6   Popularity: 3.31
Licence: Not specified      Bookmarked: 16   Downloaded: 687
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: 31,468   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: 101,707   Rating: 3.53/5    Votes: 22   Popularity: 4.74
Licence: Not specified      Bookmarked: 35   Downloaded: 1,237
A very informative, user-oriented validation edit control.
Files and Folders
General
Posted: 4 Apr 2001   Updated: 24 Oct 2001   Views: 208,928   Rating: 4.67/5    Votes: 39   Popularity: 7.41
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: 130,561   Rating: 3.76/5    Votes: 21   Popularity: 4.97
Licence: Not specified      Bookmarked: 22   Downloaded: 1,039
A control for generating colour gradients
Printing
General
Posted: 16 May 2000   Updated: 16 May 2000   Views: 188,973   Rating: 4.38/5    Votes: 34   Popularity: 6.20
Licence: Not specified      Bookmarked: 47   Downloaded: 2,475
Learn how to implement print support in your applications.
Applications & Tools
Tools with source code
Posted: 16 May 2000   Updated: 16 May 2000   Views: 110,566   Rating: 3.90/5    Votes: 18   Popularity: 4.90
Licence: Not specified      Bookmarked: 55   Downloaded: 834
Learn how to implement an auto-incrementing build number for your projects.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 37,935   Rating: 3.33/5    Votes: 3   Popularity: 1.59
Licence: Not specified      Bookmarked: 12   Downloaded: 349
A tool to check the consistency of your dialog shortcuts.
Posted: 17 Jun 2005   Updated: 17 Jun 2005   Views: 61,786   Rating: 4.93/5    Votes: 30   Popularity: 7.28
Licence: Not specified      Bookmarked: 55   Downloaded: 1,052
A better Zoomin utility.
Posted: 11 Jul 2005   Updated: 11 Jul 2005   Views: 39,587   Rating: 4.89/5    Votes: 21   Popularity: 6.47
Licence: Not specified      Bookmarked: 56   Downloaded: 1,181
A viewport explorer utility.
GDI
Device Contexts
Posted: 27 Mar 2001   Updated: 27 Mar 2001   Views: 86,387   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: 58,615   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: 91,469   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: 301,498   Rating: 5.00/5    Votes: 38   Popularity: 7.90
Licence: Not specified      Bookmarked: 88   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: 96,836   Rating: 4.97/5    Votes: 41   Popularity: 8.02
Licence: Not specified      Bookmarked: 62   Downloaded: 0
Attaching and detaching MFC objects to and from Windows objects.
Posted: 16 May 2000   Updated: 16 May 2000   Views: 147,535   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: 313,356   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: 354,625   Rating: 4.92/5    Votes: 117   Popularity: 10.17
Licence: Not specified      Bookmarked: 192   Downloaded: 0
Learn the right way to limit your application to run only one instance.
Posted: 5 Jun 2002   Updated: 5 Jun 2002   Views: 98,748   Rating: 3.59/5    Votes: 21   Popularity: 4.73
Licence: Not specified      Bookmarked: 27   Downloaded: 1,057
A simeple editor to make my polygon class a bit more usable.
Posted: 16 May 2000   Updated: 23 Apr 2007   Views: 209,670   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,078   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: 22,451   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: 185,945   Rating: 4.38/5    Votes: 32   Popularity: 6.59
Licence: Not specified      Bookmarked: 65   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: 73,303   Rating: 3.59/5    Votes: 18   Popularity: 4.51
Licence: Not specified      Bookmarked: 30   Downloaded: 1,258
A class to make handling polygons easier.
DLLs & Assemblies
General
Posted: 7 Nov 2000   Updated: 7 Nov 2000   Views: 139,950   Rating: 4.14/5    Votes: 32   Popularity: 6.24
Licence: Not specified      Bookmarked: 80   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,119,725   Rating: 4.84/5    Votes: 111   Popularity: 9.90
Licence: Not specified      Bookmarked: 298   Downloaded: 9,309
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: 62,307   Rating: 4.68/5    Votes: 32   Popularity: 7.05
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: 258,513   Rating: 4.92/5    Votes: 160   Popularity: 10.85
Licence: Not specified      Bookmarked: 132   Downloaded: 0
Learn about the potential pitfalls of code optimization.
Posted: 17 Jul 2001   Updated: 17 Jul 2001   Views: 116,100   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: 126,111   Rating: 2.95/5    Votes: 14   Popularity: 3.33
Licence: Not specified      Bookmarked: 30   Downloaded: 544
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: 552,570   Rating: 4.94/5    Votes: 129   Popularity: 10.42
Licence: The Code Project Open License (CPOL)      Bookmarked: 290   Downloaded: 0
Learn how to effectively use CStrings.
Threads, Processes & IPC
General
Posted: 15 Oct 2001   Updated: 25 Oct 2001   Views: 190,683   Rating: 4.86/5    Votes: 35   Popularity: 7.51
Licence: Not specified      Bookmarked: 65   Downloaded: 1,953
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: 148,633   Rating: 4.61/5    Votes: 35   Popularity: 7.10
Licence: Not specified      Bookmarked: 98   Downloaded: 1,767
Learn how to create new processes and how to efficiently manage them.
Threading
Posted: 1 Jul 2008   Updated: 1 Jul 2008   Views: 22,427   Rating: 4.88/5    Votes: 20   Popularity: 6.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 35   Downloaded: 224
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: 313,769   Rating: 4.25/5    Votes: 42   Popularity: 6.90
Licence: Not specified      Bookmarked: 124   Downloaded: 0
Learn tricks on how to create and use a User-Interface thread.
Posted: 16 May 2000   Updated: 5 Apr 2001   Views: 745,481   Rating: 4.94/5    Votes: 214   Popularity: 11.50
Licence: Not specified      Bookmarked: 404   Downloaded: 0
Learn how to create and use worker threads in your applications.
Posted: 14 Jun 2001   Updated: 14 Jun 2001   Views: 246,116   Rating: 4.97/5    Votes: 34   Popularity: 7.62
Licence: Not specified      Bookmarked: 87   Downloaded: 2,564
An introduction to using Semaphores.
Debug Tips
General
Posted: 16 May 2000   Updated: 16 Jul 2001   Views: 380,299   Rating: 4.98/5    Votes: 176   Popularity: 11.18
Licence: Not specified      Bookmarked: 246   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: 159,119   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: 67,916   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,142   Rating: 4.17/5    Votes: 21   Popularity: 5.41
Licence: Not specified      Bookmarked: 42   Downloaded: 1,228
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
Web04 | 2.8.140721.1 | Last Updated 28 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid