CHECKER3: Demonstrates Simple Hit-testing with Two Window Procedures

CHECKER3 divides the client area into a 5-by-5 array of 25 rectangles. Each rectangle is a child window that processes mouse clicks. If you click the mouse on one of the rectangles, the rectangle is filled with an X. If you click there again, the X is removed. CHECKER3 uses two window procedures: WndProc for the main (parent) window and ChildWndProc for the child windows. The RegisterClass function registers both window procedures. The CHECKER3 program has no keyboard interface.

CHECKER3 is a companion application for “Programming Windows” by Charles Petzold. The source code for this application has not been modified or tested by Microsoft Corporation.

{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the checker3 project." /C"samples}