Page 37 - DCAP408_WEB_PROGRAMMING
P. 37
Kumar Vishal, Lovely Professional University Unit 3: Windows Programming
Unit 3: Windows Programming Notes
CONTENTS
Objectives
Introduction
3.1 The Windows.h
3.2 WINMAIN Function
3.3 Creating the Programs Window
3.4 Messages and Adding a Message Loop
3.5 Creating a New Window Class
3.6 Message Processing Function WndProc()
3.7 Adding Custom Resource Data
3.7.1 Compiling the Resource Data
3.8 Summary
3.9 Keywords
3.10 Review Questions
3.11 Further Readings
Objectives
After studying this unit, you will be able to:
Understand windows.h
Discuss WINMAIN function
Recognize Creating the Programs Window
Illustrate Messages and adding a message loop
Discuss Creating a New Window Class
Understand Message Processing Function WndProc()
Discuss Adding and compiling custom resource data
Introduction
In this unit, you will understand the concepts of windows.h and WINMAIN function. You will
study various concepts of windows programming such as Creating the Programs Window,
Messages and adding a message loop, Creating a New Window Class, Message Processing
Function WndProc(), etc.
3.1 The Windows.h
The Windows.h is a Windows-specific header file for the C programming language which
comprises declarations for all of the functions in the Windows API, all the general macros used
LOVELY PROFESSIONAL UNIVERSITY 31