0% found this document useful (0 votes)
181 views

Learn C++ For Windows

This document introduces a series of tutorials for learning to program Windows applications in C++. The first module will cover creating a basic window program. Later modules will deal with using COM, graphics, and user input. Previous C++ experience is assumed, but no prior Windows programming knowledge is required. The document provides an overview and outline of the topics that will be covered in each tutorial in the series.

Uploaded by

prathith
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
181 views

Learn C++ For Windows

This document introduces a series of tutorials for learning to program Windows applications in C++. The first module will cover creating a basic window program. Later modules will deal with using COM, graphics, and user input. Previous C++ experience is assumed, but no prior Windows programming knowledge is required. The document provides an overview and outline of the topics that will be covered in each tutorial in the series.

Uploaded by

prathith
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Learn to Program for Windows in C++ (Windows)

1 of 3

https://msdn.microsoft.com/en-us/library/ff381399(d=printer).aspx

Learn to Program for Windows in C++

Welcome to the series Learn to Program for Windows in C++. The aim of this series is to teach you how to write a
Windows program in C++.
In the first module, you'll learn step-by-step how to create and show a window. Later modules will introduce the
Component Object Model (COM), graphics and text, and user input.

For this series, it is assumed that you have a good working knowledge of C++ programming. No previous experience
with Windows programming is assumed. (If you are new to C++, you can find learning material at the Visual C++
Developer Center.)

In This Section
Topic

Description

Introduction to Windows
Programming in C++

This section describes some of the basic terminology and coding conventions
used in Windows programming.

Module 1. Your First Windows


Program

In this module, you will create a simple Windows program that shows a blank
window.

Module 2. Using COM in Your


Windows Program

This module introduces the Component Object Model (COM), which underlies
many of the modern Windows APIs.

Module 3. Windows Graphics

This module introduces the Windows graphics architecture, with a focus on


Direct2D.

Module 4. User Input

This module describes mouse and keyboard input.

Sample Code

Contains links to download the sample code for this series.

Send comments about this topic to Microsoft


Build date: 10/5/2010

9/20/2015 6:30 PM

Learn to Program for Windows in C++ (Windows)

2 of 3

https://msdn.microsoft.com/en-us/library/ff381399(d=printer).aspx

Community Additions
windows uploads
downloads/uploads
ellasnyder15
9/15/2015

To calculate the current window dimenstion/size

Hello, I'm relatively new to Windows programming with C++. We use MFC in our code. My question is,
How do I calculate the window size/dimension/position? I tried the value, which yielded some negative "long" datatype numbers.

****Code Snippet Begins*****


RECT r;
wHnd -> GetWindowRect(&r);
r.left; //same way for right, top, and bottom - this shows a negative "long" result like -37010.
//wHnd - Pointer of type cWnd - I'm getting the actual value from windows afxwin.h

****Code Snippet Ends***** Thanks a lot in advance!


the.blues

3/24/2014

9/20/2015 6:30 PM

Learn to Program for Windows in C++ (Windows)

3 of 3

https://msdn.microsoft.com/en-us/library/ff381399(d=printer).aspx

Easy start

The smallest and easiest example program for Windows is here:


staticchaos.awardspace.com/cc/smalleasy.php
It empties the recycle bins when clicked, and only requires 3 lines of code.
veganaize

2/12/2014

Ans to : How to download msdn articles

Using command File --> Print on your browser, try to print the article as 'xps' file.
Similarly, 'pdf' files can also be printed provided pdf converter / driver is installed on your computer.
hope this works.
cwk311

10/29/2011

2015 Microsoft

9/20/2015 6:30 PM

You might also like