O'Reilly logo

C++ Windows Programming by Stefan Björnander

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Window class

The Window class is the root class of the document classes; it handles basic window functionality such as the timer, input focus, coordinate transformation, window size and position, text metrics, and the message box as well as mouse, keyboard, and touch screen input. Moreover, Window defines enumerations for window styles and appearances, buttons, icons, and coordinate systems.

Window.h

namespace SmallWindows { 
  extern map<HWND,Window*> WindowMap; 

There is large set of window styles. The window may be equipped with a border, a thick frame, scroll bars, or minimize and maximize boxes:

 enum WindowStyle {NoStyle = 0, Border = WS_BORDER, ThickFrame = WS_THICKFRAME, Caption = WS_CAPTION, Child = WS_CHILD, ClipChildren = WS_CLIPCHILDREN, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required