Archived

This topic is now archived and is closed to further replies.

Mage_gr

A question about making a simple window

Recommended Posts

Mage_gr    122
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?

Share this post


Link to post
Share on other sites
Holy Fuzz    213
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

Share this post


Link to post
Share on other sites
mickey    100
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,

Share this post


Link to post
Share on other sites
TWild    142
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

Share this post


Link to post
Share on other sites