Upcoming Events
Unite 2010
11/10 - 11/12 @ Montréal, Canada

GDC China
12/5 - 12/7 @ Shanghai, China

Asia Game Show 2010
12/24 - 12/27  

GDC 2011
2/28 - 3/4 @ San Francisco, CA

More events...
Quick Stats
108 people currently visiting GDNet.
2406 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!
Link to us Events 4 Gamers
Intel sponsors gamedev.net search:

  Contents

 Introduction
 The Design
 The Plan
 Implementation
 Window
 Management

 Coordinate
 Systems

 Window Drawing
 Window
 Messages

 Wrapping it up

 Printable version

 


  The Series

 Part I
 Part II
 Part III
 Part IV

 

Window Messages

In the first part of this article I PDL'd out a function called CApplication::RenderGUI(), the master function behind calculating and drawing our GUI:

Popup : Source Listing 4

Now, finally, we're at a position where we can begin filling in some of that PDL. Check it out:

Popup : Source Listing 5

Hopefully, seeing this code now will show you how things are starting to come together.

In the next article, Part III, we're going to be doing dialog controls. Buttons, textboxes, progress bars… the works. Until then…


Mason McCuskey is the programmer and fearless leader of Spin Studios, a six-person development team working on Quaternion, an action-puzzle game he hopes to eventually flying off the store shelves. He can be reached at mason@spin-studios.com.