A question about making a simple window
I am reading the Tricks Of the Windows Game programming book and I am in chapter 6 now but I thought of something and wanted to ask you if it is possible.When you make a simple window in Chapter 2 and can you when you switch(msg) and in the case WM_DESTROY make it create a brand new window?I am asking in order to understand all these better because I am going back to the starting chapters now to review them.If it is possible could you post the code here?
When you see a roller coaster, get on it,put your hands in the air,and ride it to the very end.Life doesn't remember you unless you kick,scream,and claw your way to the top.There is nothing in the world that is impossible.If you believe that you can do it, you will.
I''ve never actually tried it, but I don''t see why not. You can use the same class and/or WinProc if you want, just use a different window handle and call the CreateWindow function from the WinProc. Note that if you use the same WinProc, when THAT window closes, it will create ANOTHER window.
- Fuzz
- Fuzz
Alright thanks.Could you post code or are you too busy?You will just save me time.Thanks in advance
When you see a roller coaster, get on it,put your hands in the air,and ride it to the very end.Life doesn't remember you unless you kick,scream,and claw your way to the top.There is nothing in the world that is impossible.If you believe that you can do it, you will.
hi, do you mean after WM_DESTROY, create another window? well, yeah i think so you can, look for the CreateWindow on the win32 api, and probably place it there on the WM_DESTROY,
http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,
I''m currently reading that book right now too. I just thought I would tell you that when you start feeling really overwhelmed, just keep reading. Then, once you get to the end of chapter 6, start back over and power-read (skim over the small talk and study whats actually happening). This is what I did and I''m almost through chapter 7. I now have a better understanding of whats going on. I''m even taking notes as I read, because if you write stuff down, you tend to remember it much easier.
The book is great, but he shows you the hard way of doing things, then an easier (or quicker) way after you see whats going on (akm, Calculus, anyone?). This is what gets me confused, but I have a much broader outlook on it now. Anyway, I''ve said enough
The book is great, but he shows you the hard way of doing things, then an easier (or quicker) way after you see whats going on (akm, Calculus, anyone?). This is what gets me confused, but I have a much broader outlook on it now. Anyway, I''ve said enough
---------------------My specs (because I always forget to post them)Intel P4 2.4 GHz640 MB system memoryRadeon 9700 PROWindows XPDirectX 9DirectX 8.1 SDK
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement