Is there a reason you are using Win32 API instead of a framework such as Qt?