Look at Charles Petzold's Programming Windows. It's an introduction to the basic Win32 API, which will let you do pretty much anything you want in windows without any extra outside dependencies. It's not an open source app per se, but it does contain a number of full sample apps.