Well, I guess it's a bit harder than registering a window class with no styles and making a window procedure for it..
I tried to make a plain, new window class, but I ultimately had to fill in the default message handling with DefWindowProc(), since if i leaveit out, it crashes. So, I tried to figure out what I need to cover from DefWindowProc, but to no avail..
I was under a hunch that DefWindowProc is the thing that made the window draggable (has a title bar), etc. I was actually trying to make a control that is not draggable (think edit controls, richedits, buttons), but yeah, i think it's the DefWindowProc..
or am I missing something so painstakingly obvious?
(thanks in advance)
edit: sorry I just found the answer, you just need to set the style to WS_CHILD, I cant believe I missed it :-)
in which I come to the second question : how many windows (count them by the amount of HWND's) exist in applications like notepad, wordpad, msword, text editors like xemacs and vim etc? 0-10, 10-100, 100-1000, .. ? Im just curious of the performance overhead of hwnds..