Click here to Skip to main content

Articles by Roger Allen (Articles: 26)

Articles: 26

RSS Feed

Average article rating: 4.42

Button Controls

Getting BN_DOUBLECLICK to work for buttons
Posted: 25 Jun 2002   Updated: 25 Jun 2002   Views: 70,475   Rating: 4.00/5    Votes: 7   Popularity: 3.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 38   Downloaded: 0
BN_DOUBLECLICKED doesn't get received

Clipboard

Getting a CF_DIB or CF_METAFILEPICT from the clipboard and displaying it
Posted: 11 Dec 2002   Updated: 11 Dec 2002   Views: 72,857   Rating: 4.07/5    Votes: 8   Popularity: 3.68
Licence: The Code Project Open License (CPOL)      Bookmarked: 42   Downloaded: 0
Example code to display a CF_DIB or CF_METAFILEPICT from the clipboard

Document / View

Using a Doc/View exported from a dynamically loaded DLL
Posted: 15 Nov 2001   Updated: 15 Nov 2001   Views: 83,359   Rating: 4.76/5    Votes: 13   Popularity: 5.29
Licence: The Code Project Open License (CPOL)      Bookmarked: 71   Downloaded: 5,252
An article on on how to load DLLs which export doc/views.
MFC Document/View documentation and enhancements
Posted: 15 Oct 2003   Updated: 15 Oct 2003   Views: 123,413   Rating: 4.79/5    Votes: 45   Popularity: 7.91
Licence: The Code Project Open License (CPOL)      Bookmarked: 136   Downloaded: 1
An extension to the MSDN documentation and a list of tips and tricks you can do with the MFC Doc/View architecture to enhance your applications.

Menus

An examination of menus from a beginner's point of view
Posted: 22 Jun 2004   Updated: 22 Jun 2004   Views: 204,177   Rating: 4.91/5    Votes: 60   Popularity: 8.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 136   Downloaded: 2,191
A discussion of the OS menu object from a beginner's viewpoint. I take you through the basics to a more advanced understanding of menus and how to interact with them from code.
Owner drawn menus in two lines of code
Posted: 2 Nov 2004   Updated: 3 Feb 2005   Views: 117,634   Rating: 4.76/5    Votes: 26   Popularity: 6.74
Licence: The Code Project Open License (CPOL)      Bookmarked: 75   Downloaded: 2,707
Another method of implementing owner drawn menus, which only requires two lines of code by you the coder.

Miscellaneous

Scrollbars, using the WS_HSCROLL and WS_VSCROLL styles
Posted: 15 May 2002   Updated: 13 Jun 2002   Views: 135,818   Rating: 4.58/5    Votes: 20   Popularity: 5.95
Licence: The Code Project Open License (CPOL)      Bookmarked: 35   Downloaded: 2,698
How to use a CWnd's default scrollbars and to setup the thumb size correctly
An MFC ActiveX control to display trays
Posted: 15 Nov 2001   Updated: 15 Nov 2001   Views: 68,943   Rating: 4.13/5    Votes: 5   Popularity: 2.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 1,004
An MFC ActiveX control to display trays and samples, with selection and cherry picking properties

Printing

Setting the default printer programmatically in an MFC application
Posted: 2 May 2002   Updated: 11 Jun 2002   Views: 168,115   Rating: 4.78/5    Votes: 25   Popularity: 6.69
Licence: The Code Project Open License (CPOL)      Bookmarked: 43   Downloaded: 2,578
How to change the default printer in MFC and save/restore this setting too/from the registry
Example of how to print a long CString across multiple pages of output using the MFC print architecture
Posted: 19 Jun 2002   Updated: 19 Jun 2002   Views: 95,273   Rating: 4.00/5    Votes: 14   Popularity: 4.58
Licence: The Code Project Open License (CPOL)      Bookmarked: 23   Downloaded: 1,789
An example project of how to break up a long string that you want to print across multiple pages
An easy way to customise the default Print dialog in an MFC app
Posted: 16 Jul 2002   Updated: 16 Jul 2002   Views: 150,737   Rating: 4.63/5    Votes: 23   Popularity: 6.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 41   Downloaded: 1,384
A quick and easy way to customise the CPrintDialog object in an MFC application
Printing tips and tricks from the trenches
Posted: 20 Jun 2002   Updated: 25 Jul 2002   Views: 201,133   Rating: 4.70/5    Votes: 41   Popularity: 7.57
Licence: The Code Project Open License (CPOL)      Bookmarked: 100   Downloaded: 0
A selection of printing tips and tricks that can help make printing in an MFC application easier
How to print the content of a Rich Edit Control
Posted: 26 Dec 2002   Updated: 26 Dec 2002   Views: 122,908   Rating: 4.50/5    Votes: 12   Popularity: 4.86
Licence: The Code Project Open License (CPOL)      Bookmarked: 37   Downloaded: 1,822
Rich Edit controls are great until you want to print the output. Help is at hand
MultiPage PrintPreview enhancements for MFC Doc/View applications
Posted: 23 Apr 2002   Updated: 27 Apr 2002   Views: 121,367   Rating: 4.65/5    Votes: 17   Popularity: 5.72
Licence: The Code Project Open License (CPOL)      Bookmarked: 30   Downloaded: 4,186
How to improve the standard MFC print preview options to allow preview of from 1 to 9 pages at a time
MFC Print preview extension DLL for dialogs
Posted: 4 Dec 2002   Updated: 26 Dec 2002   Views: 161,129   Rating: 4.66/5    Votes: 25   Popularity: 6.62
Licence: The Code Project Open License (CPOL)      Bookmarked: 45   Downloaded: 5,849
An MFC extension library, so your dialogs can have easy print/print preview support.
Using CRgn with print preview
Posted: 3 Nov 2003   Updated: 3 Nov 2003   Views: 50,700   Rating: 4.94/5    Votes: 12   Popularity: 5.33
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 0
CRgn objects need translating, to work correctly in print preview.
Solution to the preview problem while playing a metafile in a CPreviewDC
Posted: 26 Jan 2005   Updated: 26 Jan 2005   Views: 23,243   Rating: 2.14/5    Votes: 4   Popularity: 1.29
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
Playing a Metfile into a CPreviewDC in print preview can cause further drawing operations to not work correctly.

Tabs & Property Pages

Enabling context help in a PropertySheet embedded in another PropertySheet
Posted: 14 Jun 2005   Updated: 14 Jun 2005   Views: 29,848   Rating: 4.31/5    Votes: 4   Popularity: 2.61
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 0
Context sensitive help does not work for a PropertySheet embedded within the page of another PropertySheet.

Tree Controls

Code to allow you to print the content of a CTreeCtrl
Posted: 4 Mar 2003   Updated: 16 Mar 2003   Views: 104,294   Rating: 4.06/5    Votes: 13   Popularity: 4.52
Licence: The Code Project Open License (CPOL)      Bookmarked: 24   Downloaded: 2,207
A base class that provides all the functions you need to print a CTreeCtrl

Libraries

MFC extension library - A plugin to handle owner drawn menus
Posted: 11 May 2004   Updated: 11 May 2004   Views: 51,993   Rating: 4.41/5    Votes: 7   Popularity: 3.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 44   Downloaded: 1,272
Continuation of the Plugin Architecture series
MFC Extension library : Enhanced print preview plug-in
Posted: 24 May 2004   Updated: 24 May 2004   Views: 46,859   Rating: 4.60/5    Votes: 7   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 44   Downloaded: 1,317
MFC Extension library : Enhanced print preview plug-in
MFC extension library : Single instance Plug-In
Posted: 8 Jun 2004   Updated: 8 Jun 2004   Views: 37,038   Rating: 4.66/5    Votes: 6   Popularity: 3.62
Licence: The Code Project Open License (CPOL)      Bookmarked: 33   Downloaded: 760
Single instance Plug-In
An MFC extension library to enable DLL plug-in technology for your application using MESSAGE_MAPs
Posted: 2 Oct 2002   Updated: 8 Jun 2004   Views: 249,177   Rating: 4.84/5    Votes: 53   Popularity: 8.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 225   Downloaded: 6,917
A plug-in architecture which allows you to write plug-in DLLs for your application and extend/modify its functionality.

Algorithms & Recipes

A matrix class with serialization and advanced input/output functions
Posted: 26 Jun 2002   Updated: 12 Aug 2002   Views: 230,688   Rating: 4.54/5    Votes: 26   Popularity: 6.42
Licence: The Code Project Open License (CPOL)      Bookmarked: 60   Downloaded: 3,090
A Matrix class derived from CObject with serialization and operator overloading

WinHelp / HTMLHelp

How to enable context sensitive help for individual controls on a FormView
Posted: 17 Jul 2002   Updated: 25 Oct 2002   Views: 95,248   Rating: 4.65/5    Votes: 11   Popularity: 4.84
Licence: The Code Project Open License (CPOL)      Bookmarked: 28   Downloaded: 855
Context sensitive help does not distinguish individual controls on a FormView. This sorts that problem
Simplified MFC helpfiles AfxCore.rtf and AfxPrint.rtf
Posted: 12 Mar 2002   Updated: 12 Mar 2002   Views: 44,623   Rating: 3.86/5    Votes: 4   Popularity: 2.32
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 507
Repleacement AfxCore and AfxPrint RTF files for new projects
No blogs have been submitted.
No tips have been posted.

Roger Allen
Software Developer (Senior) Sirius Analytical Instruments
United Kingdom United Kingdom
A research and development programmer working for a pharmaceutical instrument company for the past 17 years.
 
I am one of those lucky people who enjoys his work and spends more time than he should either doing work or reseaching new stuff. I can also be found on playing DDO on the Cannith server (Send a tell to "Maetrim" who is my current main)
 
I am also a keep fit fanatic, doing cross country running and am seriously into [url]http://www.ryushinkan.co.uk/[/url] Karate at this time of my life, training from 4-6 times a week and recently achieved my 1st Dan after 6 years.


Advertise | Privacy | Mobile
Web01 | 2.6.130617.1 | Last Updated 18 Jun 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid