To enable double-click processing, set the window-class style to CS_DBLCLKS. In the initialization function, find this statement:
wc.style = NULL;
Change it to the following:
wc.style = CS_DBLCLKS;
This enables double-click processing for windows that belong to this class.