To set the class icon, add the following statement to the initialization function in the C-language source file:
wc.hIcon = LoadIcon(hinst, "MyIcon");