MFC Programming Tutorials

Microsoft Foundation Classes or MFC Programming Examples, Tutorials And Articles
  Title / Author Replies
Views
I was a FAN of Resource hacker software and always wanted to create a software like them but one day I just thought lets make a mini version of resource hacker and so wrote a program to change the ICON of an exe or dll file. The idea came to me when I saw programs that can show you the ICONS in an...
68
69,622
INTRODUCTION This code will help us to understand the working of a pop3 client server through sockets. BACKGROUND Through this any person can retrive certain details of his mails such as the subject , the size. The person needs to know about his username , his password, IP address...
2
7,982
Introduction How to get the balloon tips text displayed by other applications. Background I once wanted to get the Balloon Tips text and analyze what is the error caused the balloon tip to popuped and so wanted to get the frequency of such occurance. The existing application would not take...
1
9,608
When you insert a picture on a Dialog box the main aim of your dialog box is just not to display the Resource bitmaps that are added at compile time but to display the image from a file. Now to display a bitmap I could not find many good resources but if you google out with the keyword LoadPic.exe...
46
115,647
Most often a question comes in my mind that why OutputDebugString does not take variable no of arguments like the TRACE or printf function. I dont know the reason why but I have a solution to the problem. This article is for those OutputDebugString fan's who are annoyed to use the CString and...
13
29,255
Introduction Event is one type of kernel object that Windows provides for thread synchronization. Here I shall describe the Win32 event as well as MFC event. MFC's CEvent class encapsulates Win32 event objects. Generally events are used in cases when one thread is supposed to start its job...
2
10,925
Introduction This article is about how we can create controls dynamically without using wizard and how to handle notification for dynamically created control. Here I will try to explain it by the notification BN_CLICKED for a button. Working Following three things we need to do for...
2
5,005
Define a CBrush pointer in your dialog Class CBrush *brush; Initialize the brush pointer in the constructor of your Dialog brush = new CBrush(RGB(49,49,49)); Add the WM_CTLCOLR Message handler for the dialog and add the following code switch (nCtlColor) { case...
18
50,065
This article will show you how you can convert all your applications from Windows 98 looks to the Windows XP looks. Its just too simple and does not require any code changes from the developers point of view. Other all things are expected to work as normal. Note that MSDN requires you to call...
17
30,269
MFC does not allow to trap all the events on the CButton control but some commonly used events like BN_CLICKED and BN_DOUBLECLICKED and so to trap a right mouse button events on a CButton MFC you need to derive a new class from the CButton. MyButton.h class CMyButton : public CButton { //...
16
17,280
Create a Dialog based application and add a menu. First you need to declare some variables in the the header file of your Dialog. #define MYWM_NOTIFYICON (WM_USER+1) //User defined messages. CMenu m_TrayMenu; //Displaying menu when right clicked on the system tray....
21
42,052
Introduction Let us see this in details of implementation How Modal and Modeless Dialogs are implemented by Windows How Modal Dialog works How Modeless Dialog works Introduction There are two types of dialog boxes they are modal and modeless. The most common dialog boxes are modal. A...
1
14,235
Threads and processes are very similar but they differ in the way they share resources. Processes are normally independent and have its own address space. Now the question comes when 2 independent processes want to communicate how do they do that. There are quite a few options for them to establish...
14
23,426
This article will tell you how you can retrieve the text from any window. I will use the Notepad as the sample but you can even use the password input boxes. This is not about hacking the passwords but is for retrieving you lost but saved password which is not displayed in browser. There is no...
2
7,263
Whenever you write an application you tend to get default about dialog and you always tend to think if I can put up my contact details on it or my website URL to the website it will be awesome. At least I do think that way. After thinking when we tend to implement it in MFC we find that we have...
1
11,030
To support message maps, MFC supplies the following macros: Message-Map Declaration DECLARE_MESSAGE_MAP Declares that a message map will be used in a class to map messages to functions (must be used in the class declaration). Example: // example for DECLARE_MESSAGE_MAP class CMyWnd :...
1
16,150
Software Development Kit (SDK) It is a set of tools designed to help C programmers create Windows applications. Windows SDK consists of the large set of books describing functions, messages, structures, macros and resources .There are also tools including a dialog editor and an image editor,...
1
20,958
IntelliSense is a form of automated autocompletion popularized by the Microsoft Visual Studio Integrated Development Environment. It also serves as documentation and disambiguation for variable names, functions and methods using metadata reflection.Using IntelliSense is a convenient way to access...
1
5,306
This article shows a step by step technique to create your first DLL with VC++. Steps to create your first DLL Create a Win32 Dynamic Link Library project Go to the workspace explorer. If its not visible in the GUI go to the View menu and click on WorkSpace or use Alt + 0 shortcut to make...
17
27,349
Here,It my another Project, System Utility ver 1.0. let me explain it's functionality Basically this whole program depends on the registry. The registry in Windows holds the key to each and every aspects of the Windows Operating System, but only if you find them in registry and use them....
9
7,777