Quote Originally Posted by Arjay View Post
What does msdn tell you? Does DestroyWindow docs reference CreateWindow or CreateWindowEx? What does the remarks section in each api tell you.

I mean I could answer this question directly but I wonder why you ask it since the info is available so easily in msdn online.
Yes, DestroyWindow docs does reference CreateWindow and CreateWindowEx. Okey, I may assume if a window is created by calling CreateWindow, then it must be destroyed by calling DestroyWindow. But what if I don't call DestroyWindow to destroy window created by the function Create? Programming is not about memorize some rules and programming is about knowing everything in and out instead.