Set the Window-Class Style

Set the window-class style to CS_DBLCLKS to enable double-click processing. 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.