VC++
Tutorials / UI Samples
UCanCode
Software focuses on general application software development. We provide complete solution for developers. No matter you want to develop a simple database
workflow application, or an large flow/diagram based system, our product will provide a complete solution for you. Our product had been used by hundreds of top companies around the world!
Microsoft
Visual C++ is a
programming environment used to create computer applications
for the Microsoft Windows family of operating systems. To
assist it, the Microsoft Foundation Class
Library, or MFC,
was created as an adaptation of Win32 in MS Visual Studio.
This
web site provides lessons and links on how to exploit the
MFC library, including its use in MS Visual Studio and its
implementation of the C++
programming language.
"100% source code provided! Free you from not daring to use components because of unable to master the key technology of components!"
Below
are the list of these VC++
Tutorials Codes:
VC++
Tool:
Visual
C++ and SQL generator for ODBC Database, with
source code sample
VC++
MFC Tutorial:
GDI Objects
E-XD++
GDI Drawing PolyBezier Example:
Drawing Cloud Shape
VC++
MFC example:
Micrsoft Visio 12 like Print Preview
Source Code
E-XD++
GDI Drawing
Example:
Drawing A Clock Shape
E-XD++
GDI Drawing Example: Drawing Wave Shape
E-XD++
GDI Drawing Example: Drawing UML Actor Shape
E-XD++
UML Drawing Example: Drawing UML Package Shape
E-XD++
UML Drawing Example: Drawing UML Component Shape
VC++ MFC Codes:
Display Message Balloon Tip Window with
SetWindowRgn and CreateRectRgn and CombineRgn
Visual C++
Example:
Load DIB Bitmap File and Save Bitmap file and
Convert dib to bitmap and rotate bitmap file
GDI Example:
Add
and Draw US flag with E-XD++, five
star shape
VC++ Code:
Drag and Drop File in Dialog with
WM_DROPFILES
and WM_NCLBUTTONDOWN
E-XD++
GDI VC++ Drawing Example:
Draw
Animate Line with CBrush
Get
Business Card / Label
Print Component
C++ Source Codes
E-XD++
GDI Drawing Example:
Drawing ADDL Package Shape
Store
and read from XML File
with .NET and C#
framework, C++/MFC Example
Draw
or Paint Spline Curve Line
with VC++ Source Code
VC++
Example:
splitter control in dialog UpdateWindow GetWindowRect GetDlgItem
VC++
GDI Example: GDI
AlphaBlend
and Bitmap Alpha
Create VC++
MFC Chart Control, Drawing and Priint Bar
Chart, Source Codes
CDialogBar,
CBitmapButton in Dialog Bar, SubclassDlgItem and EnableDocking
VC++ Example
Converter
Convert RTF to HTML
with VC++ Source Codes, and
RICHED32.DLL
VC++
Sample:
Create Shadow of bitmap,
draw shadow with
GDI, TransparentBlt, SetBitmapBits and
GetBitmapBits or GetRValue, GetGValue and
GetBValue
VC++
Ado Tutorial
with VC++ Ado Sample and VC++ Ado Example
MFC
Article:
Create toolbar with SetButtons and SetButtonInfo
and OnNotify
VC++
MFC Example: Clipboard on CF_DIB, CF_METAFILEPICT,
OpenClipboard, GetClipboardData, CloseClipboard
Free
VC++ Tool:
Convert C++ Code file to HTML
VC++
Sample:
Convert EMF to WMF using GDI+
COleDateTime,
Get first day of week, COleDateTimeSpan, VC++
Example
MFC
Multiple Page Print preview Article and
CPrintPreviewState,
it with CPrintPreview and DoPrintPreview, LPDEVMODE and
GetPrinterDeviceDefaults
Visual C++
2008 Feature Pack:
MFC Visual
Studio Office 2007 Style Enhancements
Create MFC VC++ Static Library, UpdateData and
LoadIcon
VC++
GDI Example: Draw
an periodic
Table
shape
OLE DB Sample, Database, Atldbcli.h,CoInitialize,
MoveNext
Visual C++
Example
VC++
Example:
HRGN,
SetWindowPos, SetWindowRgn, Create
Region from bitmap file
VC++
Example:
GetPath,
BeginPath, EndPath, True Type Font,
Draw
Outline of text
VC++
Sample:
Screen Capture
VC++
MFC Sample Code:
Transparent
bitmap splash screen
MFC
Example
Multiple monitor support with GetSystemMetrics
EnumDisplayMonitors and GetMonitorInfo
VC++
Example: Write
HTML File (Table)
MFC
Example:
WM_KICKIDLE and CCmdUI and
ON_UPDATE_COMMAND_UI and
WM_IDLEUPDATECMDUI
C# Article:
Create, Open, Load, Save, Import,
Export, Edit, SVG File Document
With
C#, SVG .NET Class
Library
VC++
Example:
Sizing
Control Bar with Tab Control, DockControlBar
VC++
Example: Control
for
Load and View Bitmap file, ScrollBar
VC++
Example:
Draw Emboss text and other Shadow shape on your bitmap
VC++
Example:
Store Bitmaps into an Array, CBitmap,
CreateBitmapIndirect
VC++
Example:
CString Extension,
Get Window Directory
VC++ Example:
Draw or display Real-time data
plot Chart
VC++
Tool:
MFC under the hood,
WinMain,
VC++ Programmer
VC++
Article: Calculate the width of text with
GetTextExtentPoint32,
DT_CALCRECT
and GetCharABCWidths
VC++
Sample:
Multiple Views layout of
RepositionBars and DeferWindowPos with
RecalcLayout and UpdateAllViews
VC++
FAQ: Place a bitmap image on the clipboard
VC++
Example:
Macintosh-like Progress Control,
CProgressCtrl in Dialog
VC++
Article:
Create
menus with Unicode, ModifyMenu, GetSubMenu
VC++
Grid Control Library Source Code
Based on CListCtrl
Add proto - logic diagram displays to your
Java, C++, and .NET applications, for the desktop and rich
internet applications.
VC++
MFC Example:
Place
Combo Box, Edit Box, Progress Control, Check Box
on toolbar, CComboBox, CEdit, CCheckBox
VC++
Sample:
MP3 Player with C++ Source Code, Play MP3 File
VC++
Example:
Rotate a bitmap DIB image File
VC++
Sample: Free
C++ Twain Source Code
VC++
Example:
Convert / Turn bitmap DIB File to a JPEG file
VC++
Article:
Create Cursor, Display cursor, Convert
bitmap to cursor, CreateIconIndirect, DeleteDC, SelectObject,
ICONINFO
VC++
Tutorial: Using
DirectX, DirectDraw in MFC, Article, Example Codes
VC++
Example:
A few skin library with source
codes
VC++
Example:
Retrieving lost passwords using Windows
hook and WM_GETTEXT
VC++
Example:
Sort CObList class
VC++
Example: Write, Create AVI Files
VC++
Article
Draw Rotate / slant
text strings
SetWorldTransform
VC++
.NET Tutorial Programming: Using
GDI+
Brushes to Draw Text
VC++
Single Instance Window, CreateWindow, CWinApp,
SetWindowPos, SetFocus
VC++
Article: create or change the skin, shape, image
of dialogs, SetWindowLong
VC++
MFC Example:
Create
or show Progress Bar/Edit Control/Combobox
Control/icon in a status bar
VC++
MFC Tutorial: Auto Save files, CDocument - CView
VC++
Demo: Drop down Combo Box in CTreeCtrl and
CListCtrl
VC++
Article: CSplitterWnd Extension that
Allows Create Multiple Views, and
Switch Views in Any Pane
VC++
Article:
Print
and Draw Html Document Text, draw like DrawText
VC++
Codes: Draw text along line
and
draw rotate text
VC++
MFC Example:
Adding VBScript and JScript support in your C++
applications
Draw
Rotate Text with GetTextExtent and SetTextAlign
and ExtTextOut, VC++ Example
CAM
simulator
Sample with
VC++ MFC Source Code
Using
GDI+
with
MFC or native C/VC++
VC++
MFC Tutorial: Undo Redo Source Code
_TrackMouseEvent, GetWindow,
GetWindowRect, SubclassWindow, GetWindowLong, SetWindowLong,
Drawing, VC++, source code
VC++
Article:
Opening / Saving multiple types of documents in MFC MDI applications
Free
VC++
MFC Grid Control
with VC++ Source Code
C++
and VC++ Code Generator Tool, Free UML Class Diagram
Drawing Tool
VC++
Example and Article:
Drawing Double Buffering With GDI+
MFC Sample:
Changing Bitmaps Color Depth,
CBitmap, GetDIBits
VC++ Example:
Drawing
an Arrow Line
with Source
Code
MFC
Sample Code:
CList Iterator
MFC
Source Code:
Draw Text with GetCurrentFont, GetTextExtent and GetLogFont and
MoveToEx
VC++ Controls: The
Tree Control,
CTreeCtrl Example
UML
Diagram Component / Drawing C++ Source Code Solution
from ucancode,
it will save you 50% - 80% time for building any UML based
application.
VC++ Sample:
Address Book
VC++
Tool:
MFC GDI Plus thumbnail
CListCtrl,
BMP File, Jpeg file, Gif File, Tiff file
VC++
Tool:
Printer
Settings - Change, Store and Load Printer Setting,
Paper Orientation
VC++
Sample:
ExtSelectClipRgn
or
IntersectClipRect,
ExcludeClipRect and
OffsetClipRgn or GetMetaRgn with InvalidateRect
Send Email using MAPI - A COM
Email DLL
Component, VC++ Example With
Source Code
VC++
MFC Example: Add bitmap into CImageList
VC++
MFC Example:
Icon
Select Combo Box, CComboBox
MFC
Library:
Drawing Spline
application with OpenGL with sample Source Code
VC++ Example
Capture Print Screen to
Clipboard including
dropdown menu,
SetWindowsHookEx
and
UnhookWindowsHookEx,
with
RegisterWindowMessage
VC++
Article:
Converting Wav file to MP3 or other format using DirectShow
with source code
Printing
Preview toolbar, MFC Example
VC++
MFC Example:
Read
/ Write, Load / Save, Registry access to HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER
VC++ Article:
UnrealizeObject
and
SetBrushOrg
or
GetSystemMetrics with Pattern Brush
VC++
MFC Sample: Magnifying
Glass - demonstrates
different ways to obtain or create proper DC
and use
BitBlt
-
StretchBlt
functions
VC++
MFC Example: Create MFC Extension DLL, COM
and ATL, dllimport, dllexport, AFX_EXT_CLASS
MFC
visualisation software:
Create and draw Thumbnail View
with CWinApp and
CDocTemplate and CMultiDocTemplate
Visual C++ Addin:
CFileDialog
AddIn, Download Example
VC++
Example: CListBox - A list box with Icons,
AddString, InsertString, with Image Item
VC++ Tutorial /Database
Print
VC++
MFC ActiveX Control Article, COM Drag - Drop
Example
VC++
Code: Change the font of window
with SetFont and EnumChildWindows and
CreateIconFromResource
VC++
Tutorial:
Custom CListBox
- A ListBox with Radio
Box, DrawFrameControl, DrawFocusRect
VC++
Example:
Load,
Draw Bitmap File, CBitmap, GetBitmap, BITMAPINFOHEADER
VC++
MFC Tutorial: Extend CStringArray and CString
MFC
Library Article:
Create Database with SQL Server and ADO Stored
Procedures
MFC Sample Code: Load and Display
PNG Image File
GDI+
Example:
Draw
Curve ActiveX Control
GraphicsPath and Graphics
C++
Article:
Compuware,
BoundsChecker, Tracking GDI resource memory leaks
MFC
Example:
Create Multiple
Thread with CreateThread and CWinThread
and
SuspendThread
and
ResumeThread
Date-Time Edit Control
A simple masked
date-time editor. VC++
Article Source Code
and
GetWindowText
MFC
GDI+ Sample:
gdiplus.lib with GdiplusStartupInput and GdiplusStartup with
GdiplusShutdown
VC++
Tips: Auto-complete edit control
VC++
Programming:
Docking Toolbars
and CControlBar, Side-By-Side, EnableDocking
OpenGL
Tutorial:
Printing and Print Preview with
VC++ Example
VC++
Example:
CToolBar, ToolBar Customization,
Saving, Restoring and Drag and Drop
MFC Sample: CSliderBarCtrl Sample Source Code -
RealOne Player Volume Bar Clone
MFC Example: Export dialogs in MFC Extension DLLs
MFC
Sample: Display or Create Splash Screen, Show
Transparent Bitmap with SetWindowRgn
VC++
Example:
CFormView,
Replace a
view in SDI Application, LoadLibrary,
GetProcAddress, GetActiveView, AfxGetMainWnd,
SetWindowLong
VC++
Tool: RTF-to-HTML
Converter, Convert Rich Text to HTML Example
Add
Phthon in or
into C++ Application with Visual C++ Article or Tutorial Source Code
E-XD++
UML Drawing FlowChart Example: Drawing UML Note Shape
MFC Example: Rows of CToolBar and
CToolBarCtrl,
with
CalcDynamicLayout, with
SetRows
CBRS_ALIGN_TOP , CBRS_SIZE_DYNAMIC and
FloatControlBar
VC++
Article: Insert a bitmap file - HBITMAP into a
Rich Edit Control, use
COleDataSource, CF_BITMAP, and STGMEDIUM
Visual
C++/MFC Tutorial -
Lesson 1: Behind the Scenes with Handles and Post Messages
VC++
Debug Trace, Memory Check, Assert Article, DebugOutputString
CMemoryState A C++ Projects
Customized Printing Dialog using PrintDlg
VC++
Example:
Add VBScript and JScript support in VC++
applications
with Script ActiveX Control MSSCRIPT.OCX
Create
Multiple Language to MFC Extension DLL Toolkit with Resource only
VC++
MFC DIBLOOK
Advance Sample, with file open dialog preview
MFC Sample:
Add status bar to an MFC
dialog,
CStatusBar
VC++
Game Sample Source Code,
Wave File Play, Midi file
play, DirectX
VC++
Example:
Using one
VC++ extension DLL in another VC++ Extension Dll
Visual C++ XML Article, Load Parse and
save XML Document with
MSXML Library
VC++
MFC Tutorial:
Unicode, MBCS and Generic text mappings
C++
Article
STL
Iterator and the
VC++ MFC Iterator
Visual
C++ Tutorial: Visual C++ Debug / VC++
Debug / MFC Debug
VC++
Example Source: 2D Chart and 3D Plot Print Chart Control
MFC
Tutorial: MFC
Printing
Runtime
class information using CRuntimeClass in MFC
VC++
Article:
Create
2d graphics editor, AutoCAD, like Toolbar
Globals in MFC
Class Framework, CWinApp
 |