Looks like you're trying to use Win32 directly. While that's possible, you'll probably find it much easier to go with a GUI toolkit. A few options are MFC (Windows only), or one of the cross-platform...