Level Editor in the way of starcraft
I want to make a Level Editor like the one of Warcraft 2 or Starcraft.
I want to make it in GDI.
Schould I use PeekMessage or GetMessage?
Schould I paint the titles in the WM_PAINT Message or schould
I draw them every frame?
Is there a compnonent(something like stringgrid) in which I can load all the titles in?
I am programming in Visual C++6.
I am by no strech of the imagination a tile master, but here is my take on the situation. Paint them in the WM_PAINT message because (in theory) nothing will every need to be painted unless a WM_PAINT message is sent. There are a few other messages too, I assume, for your scroll bars, etc. As for the PeekMessage(), GetMessage() question, are you using MFC or straight Windows API? If you are using MFC, you don''t have this problem . If you are using plain old boring (but less bloated) Windows API, I have never used GetMessage() so I am forced to recommend PeekMessage(). I would also recommend DirectDraw instead of WinAPI or MFC. You can still use GDI calls with DirectDraw.
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement