Simple: simple window system

Description

Simple creates two windows: a main window which has nothing drawn to it, and a smaller window with a border and two diagonal lines. The main window is the parent of the smaller window.

Download

Click on the following link to download the example: simple.zip

Click: browse to view the example code.

Classes defined

  • CMainWindow : An empty window. Just draws itself.

  • CSmallWindow : A small window which draws itself with a square border around the edges of the window, and two diagonal lines between the corners.

  • CExampleWsClient : Derived from CWsClient . Owns the CMainWindow and the CSmallWindow . Processes key and pointer events.

Types used

  • CWindowGc : Window graphics context. Required when drawing to a window.

  • struct TPointerEvent : Pointer event details

  • struct TKeyEvent : Key event details