Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / desktop / MFC

MFC

MFC

Great Reads

by Marat Bedretdinov
Shell interfaces in use. IShellFolder, IEnumIDList, etc.
by Nicolas Bonamy
Two simple ways to add "Do not ask again" Message Boxes to your application.
by Igor Sukhov
The ATL and MFC versions of the class that implements a dialog for selecting users(computers) within the Windows Network.
by vishalkmehta
This article demonstrates how to leverage the power of images and inheritance to achieve a "skinned" look for your Windows applications.

Latest Articles

by Marat Bedretdinov
Shell interfaces in use. IShellFolder, IEnumIDList, etc.
by Nicolas Bonamy
Two simple ways to add "Do not ask again" Message Boxes to your application.
by Igor Sukhov
The ATL and MFC versions of the class that implements a dialog for selecting users(computers) within the Windows Network.
by vishalkmehta
This article demonstrates how to leverage the power of images and inheritance to achieve a "skinned" look for your Windows applications.

All Articles

Sort by Score

MFC 

by Anuraj Parameswaran
A very simple and lightweight collaboration white board using HTML5 canvas API, JQuery and SignalR
by Zac Gery
A Crash Course In CSS Sprites
by Marius Bancila
A tale of two flags: DS_CONTROL and WS_EX_CONTROLPARENT
by John Bhatt
Accordion Panel with CSS
by João Paulo Figueira
An alternative way to create the menu bar
by Andy Point
How to create Android Navigation Bar Menu using Bottom bar Library
by Sibeesh Passion
In this post we will discuss how we can apply CSS important in JQuery. We all know that we can not apply a important CSS property directly to an element. It does not work. But still there is a solution for that. Here I am going to share you that. I hope you will like […]
by Ben Liebert
How to architect CSS
by User 1043264
How to use Razor Pages in ASP.NET Core 2.0. Continue reading
by Benaiah Mischenko
Ever want to create beautiful gilding beside your text with CSS? (Here’s a demo, if you’re in a modern browser) It’s actually quite easy. Here’s how… First, some simple HTML. I’ll just give you this one: Concept 1 Minstrel Then, you need [...]
by Prava-MFS
As we all know about CSS (Cascading Style Sheets) is a language used for styling the web pages written in HTML, XML or XHTML. In CSS, selectors play a vital role to declare which part of the web page, the style applies to and it is done by matching the tags or attributes present in […]
by n.podbielski
A better algorithm for finding UpdatePanel that will be updated during page request
by Syed Mujtaba Hassan
I needed to bind a checkbox in gridview to a database field but to my disappointment I found that this was not easy. We could bind “Text” property but what if I don’t want to display the value I am binding (e.g. ID of that record). Here is a work around.
by Paulo Morgado
The major feature of C# 4.0 is dynamic programming - not just dynamic typing, but dynamic in a broader sense, which means talking to anything that is not statically typed to be a .NET object.
by pi19404
This article describes basic concepts of C++ Storage Access Specifiers.
by Paul M Watt
C++: Template Meta-Programming 2.0
by stoimenpopov
Quicksort is a very elegant general purpose sorting algorithm and every developer should be familiar with its principles.
by Mohammad Elsheimy
Convert colors to gray shades, detect Print Preview mode, and detect Black-and-White printers
by Talking Dotnet
In my previous post about Writing your first jQuery Mobile app - Part 1, I have explained about creating single page, changing themes and creating navigation button.
by Arpit Jain
This article explains how to upload a file using HTML 5 and JavaScript.
by Thomas Cooper
How to create code snippet view panel on an HTML page
by Víctor Sumozas
CSS divide page into sections
by Jamie Munro
This is the first article to follow-up on my why "Why Is Internet Explorer Better?".Today's article is going to discuss how Internet Explorer deals with margins.
by Dave Ceddia
CSS transitions explained
by Prava-MFS
Hello everyone, today I am going to share one basic thing, which you all may know about it. I am going to explain how can we create numbered list using CSS. So, let’s go through it quickly without wasting much of our time :). HTML provides us few ways of creating lists.
by Prava-MFS
CSS: Custom HTML5 Form Validation with Visual Effects using Pseudo Class
by Prava-MFS
CSS: Nested Selector vs Modular Selector
by Deepak-VS
DataGridView – Stacked Header – Export to HTML/Excel
by Camilo Reyes
The word “modern” gets thrown around a lot in UI design. I feel like it often gets misinterpreted into meaning whatever you want. To add to the confusion, a quick look in the dictionary defines modern as.
by AlexTatiyants
Functional programming has been all the rage lately, yet surprisingly few have heard about an intriguing alternative known as Dysfunctional (or FUctional) programming.
by Dave Kerr
In this article, I'll show you how you can use the shell as an efficient tool to compliment how you use the clipboard.
by Codeman the Barbarian
Embedded Programming – Getting Started With the Netduino - Part 2
by Dave Ceddia
Escape or sanitize HTML in Angular
by James Carr (Crashcarr)
The results have been pleasantly surprising in adding additional functionality to Notes and SharePoint.
by Sibeesh Passion
Export Hierarchical (Multi-Level) HTML Table With Styles Using jQuery
by Melick
Format text out as a table (format-table) in PowerShell
by Luis D. Aguilar
Functional programming is a programming paradigm that treats application operations as a sequential execution of functions.
by Philipp_Engelmann
How to implement state management to switch from the title screen to the playing-screen, add a player-controlled ship-class and finally some invaders for the player to fight.
by Victor Rene
Gradia's initiative bar
by Andrei Ion Rînea
Having fun with HTML5 History API - Part One
by Andrei Ion Rînea
Having fun with HTML 5 history API - Part 3
by Andrei Ion Rînea
Having fun with HTML 5 History API – part two
by Camilo Reyes
High Performance HTML Forms
by Stephen C Young
Functional Programming
by Kunal Chowdhury «IN»
Organizing custom control properties inside Visual Studio and Expression Blend
by Nitesh Kejriwal
How to create a Hierarchical Menu using HTML, CSS and jQuery
by Imran Abdul Ghani
There are several ways a user can add audio or video clips to a SharePoint page when editing the page in browser. Here we are going to discuss the following ways to embed a video to SharePoint. We will follow a step by step approach to achieve the desired output.
by HelgeKlein
How to enable drag and drop for an elevated MFC application on Vista/Windows 7
by Afzaal Ahmad Zeeshan
I was compiling a few things I would recommend to every beginner in computer programming. Here it is.
by Nitesh Kejriwal
Friends, In many websites having long contents we have seen a “Back To Top” or “Scroll To Top” button when clicked takes you to the top of the webpage. We see this kind of feature normally on the product listing pages of e-commerce websites.
by DareenH
The Xdebug extension helps you debugging your script by providing a lot of valuable debug information.Before you install xdebug you should have PHP5 and Apache2 already working properly.
by Mohamed M. Shaheen
This blog has been contributed to Forum Nokia Wiki at http://wiki.forum.nokia.com/index.php/How_to_make_Video_splash In those a few lines you will find a code of how to create easy startup splash screen that can play video files of any format (GIF,AVI,mpg,3gpp,real etc..)video splash classpack
by Abhijit Jana
How to Use ASP.NET “Property Pages” to create or host a Silverlight application in ASP.NET Site?
by Duleeka Gunatilake
The HTML tag is intended to embed an inline frame within an HTML document. This article explores the possibility to inject HTML content from the same source to the inline frame.
by danielthesolver
HTML5 is the next major revision of the html standard. If all works well, it should become the dominant markup in the nearest future ousting both html4 and xhtml1 from their cozy locations. A lot of people say HTML5 is the next big thing. In some sense, yes. But in another no.
by M.Hussain.
This post is about conversion of HTML to PDF in ASP.NET using a free third party library (nReco htmltopdf) and exe (wkhtmltopdf).
by Steve Wellens
On the ASP.NET forums where I moderate, the poster's IP address is displayed at the bottom of the post. Often I am curious and paste the poster's IP address into an IP locator web page to find out where they are posting from. This was tedious.
by Steve Wellens
Being on the software "bleeding edge" is similar to being the "point man" in combat. I generally avoid being the first to adopt new technology until some other poor bastard has led the way…and occasionally paid a price: The price being missed deadlines, ulcers and ruined reputations. No thanks.
by Pragmateek
Introduction The following article is my response to “John” comment on my other post about native C++/C# interop using C++/CLI. The initial request was rather simple: for whatever reason John wanted to use the C++/CLI wrapper from Python and not … Continue reading →
by AlexCode
Image Sprites and CSS Classes creator
by Jonathan Wood
Getting accelerators to work in a dialog box.
by Andy Feng
Improve CSS Development Productivity using Sass and Compass Part 1 - Configure Environment
by Leland Richardson
HTML-based emails are one of those evil things in the life of a web-developer that we would all rather never have to do... but alas, it needs to be done.
by Dmitriy Kozlov
Forms Designer has just gotten a new feature: the related items control is now able to do inline spreadsheet-style quick editing. This feature is supported in SharePoint 2013 and SharePoint Online in Office 365.
by Mohamed Taman
Understanding lambda expressions....This article of the “Java SE 8 new features tour” series will deep dive into understanding Lambda expressions. I will show you a few different uses of Lambda Expressions. They all have in common the implementation of functional interfaces.
by Bibhu Dutta
Lately, I was in conversation with our QA lead, which made us realize of an issue that, certainly will cause inconvenience to the end users of the web application on which we are working on. Although the issue is very … Continue reading →
by Gaurav Aroraa
In our previous posts we learned ‘What is S.O.L.I.D. Programming Principles and a detailed explanation with code of Single Responsibility Principle, Open/closed Principle, Liskov Substitution Principle and Interface Segregation Principle.
by Gaurav Aroraa
History: In our previous posts we learned ‘What is S.O.L.I.D. Programing Principles’ and a detailed explanation with code of Single Responsibility Principle and Open/closed Principle. S.O.L.I.D. is an acronym introduced by Michael Feathers as: 1.
by Chris Boss
Lessons learned from legacy Windows programming
by sashan govender
This was a program I wrote a while ago (2003) to demonstrate what can be done with template metaprogramming in C++.
by Ivan Krivyakov
MessageBoxes and worker threads
by Alexander Golde
Meta Programming is a concept that dates back to languages such as LISP or Smalltalk. The term is used for programs that write or modify other programs – or perform operations on themselves.
by Alexander Golde
Meta Programming is a concept that dates back to languages such as LISP or Smalltalk. The term is used for programs that write or modify other programs – or perform operations on themselves.
by danielthesolver
The usefulness of Regexes (Regular Expressions) is ineffable. Especially in parsing documents, it’s a well-suited and indispensable tool.
by nirman b doshi
MVC attribute to restrict users to enter any kind of HTML tags in the input fields
by Edison Heng
Networking and Socket programming tutorial in C.
by Eric Anderson IO
With the Apple watch coming soon there has been an influx of new iOS developers. Because of this I keep seeing the same type of conversations and pull requests centered around this one topic property attributes.
by abin jaik
Office 365 Video & Office 365 APIs
by Sarath C
In this installment, let’s cover basic primitives. The basic primitives are the mostly used shapes like lines, rectangle, rounded rectangle, circle etc.
by Charles Boyung
This is the third part in my series on programming for performance.
by Zac Gery
The topic of perfection is a common discussion at the programming dinner table. Is it good? It is bad? It is healthy? Is it possible? Is it realistic? As expected, a topic with this many questions has a wide variety of entrenched opinions.
by Grant Curell
This code is for Python 3. I was surprised to discover that I couldn’t really find a good way to do this when I Googled for a solution. I just kept getting results for Google’s youtube API, which is great… but also massive overkill for what I wanted to do.
by Jonathan Wood
How to read and write CSV files in MFC
by Steve Wellens
It's possible you may develop dozens of web sites without ever doing any data caching. However, if you are trying to increase performance, data caching can be a key tool. The Asp.Net Cache object is remarkably easy to use, but it has many settings which makes it extremely powerful.
by Mohammad Elsheimy
Learn how to create your CWinApp::OnIdle in C
by Sibeesh Passion
Sort a JSON Array Programmatically by a Property
by Ben Liebert
Here is a step by step guide to building a cross-platform application in HTML, CSS and JavaScript
by Nizar Noorani
We recently ran into a challenging design issue at work...
by User 271009
Stuff is an example application I wrote for WPF Line of Business Tour at Redmond event.  During some of the event sessions I used the code in Stuff to demonstrate topics I was teaching.  During the event, we did not do an end-to-end examination of Stuff, that is the purpose of this bl
by Paul M Watt
Template meta-programming is the practice of using templates to generate types and functions to perform computations at compile-time and generate programs.
by Chris Boss
The elusive Control Spy utility is a WIN32 programmers friend. Control Spy is a unique set of examples of how the common controls work when writing software using the WIN32 API. The last version I personally downloaded was the 2.
by Andrey Permamedov
The bug in MFC tool tip control
by micahs
What does it take to be an Object Oriented Programmer?
by Member 7950660
Threads and a Bicycle-built-for-two
by Thomas Maierhofer (Tom)
TinyMCE additional HTML elements
by MobileAppMastery
Top 5 Must Know Variable Types For iPad (& iPhone) Programming
by Arindam Sinha
SOAP Request/Response XML can be logged with TraceExtension
by Melick
User profile synchronization service starting issues
by Jason N. Gaylord
HTML5 will introduce many new and exciting features including the addition of geolocation. Geolocation allows a device to determine a global position of the device (latitude and longitude), it’s accuracy (horizontal accuracy and vertical accuracy), altitude, and speed.
by Aoi Karasu
Referring to a property via a string containing its name
by teebot
(or How to Retrieve a Type of Parent Control Using an Extension Method)Here's a situation where I had to retrieve the next Parent Control of a certain type.
by rudigrobler
Who's the boss?
by Sarath C
Simple method to display progressbar over taskbar button
by Jim Crafton
How to work with delegates in Visual Form Files.
by Sacha Barber
I was working on something for an upcoming article that I am writing where I am messing around with 3D, and I was having a small issue with a VisualBrush (something to do with Freezable, I never did quite figure it out and came up with a better solution), but along the way of trying [...]
by HeWillem
WPF TabControl Focus Behavior with Invisible Tabs (MVVM)