Hi Common tater
Thanks for example , and that is exactly what i want
BUT problematic part is how control each new window with WndProcedure.
As you know when i click Exit then all windows are closed,right?
What i want is that you can close new window that old window stay opened.
Did you try clicking the X on the top right corner?
Do you know how to do that for example with one window which is created when i doubleclick
exe ,then when i click on this first window 'new window' that new window is created and
when i want to close just this 'new' window that old stay .
any idea is welcome..
What I gave you was an example of how you can create multiple windows in the same class, with the same windowproc and the same message loop... In no way was I trying to give you some completely resolved and useable application... That's YOUR job, not mine. I can point you in the right direction, which I did... the rest is up to you.
Now you should go back to Winprog.org and actually read the tutorial and work with the examples... Everything you need to know is there. It's how I got started.