Tutorial Step 4

This sample builds on the knowledge learnt in the previous tutorials (1, 2 and 3) and again demonstrates the use of a WEL_CLIENT_DC.

step4


Compiling

Running

After launching the sample, you will see a WEL_FRAME_WINDOW displayed. By holding down the left mouse button, and moving the mouse (Within the client area of the window), you will be able to draw on the client area of the window. Pressing the right mouse button within the window will clear the client area of the window.

Under the Hood

This system is an improvement over tutorial step3 and only uses WEL techniques demonstrated in previous tutorials to allow you to draw on the client DC of the window.

This sample contains the following classes: