Click here to Skip to main content
15,913,289 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC going by wayside? Pin
DaveE9th27-Jun-03 8:59
DaveE9th27-Jun-03 8:59 
GeneralRe: MFC going by wayside? Pin
NormDroid27-Jun-03 10:07
professionalNormDroid27-Jun-03 10:07 
GeneralRe: MFC going by wayside? Pin
Nemanja Trifunovic27-Jun-03 11:19
Nemanja Trifunovic27-Jun-03 11:19 
GeneralRe: MFC going by wayside? Pin
Blueapples27-Jun-03 12:03
Blueapples27-Jun-03 12:03 
GeneralRe: MFC going by wayside? Pin
NormDroid28-Jun-03 1:59
professionalNormDroid28-Jun-03 1:59 
GeneralRe: MFC going by wayside? Pin
Nick Parker28-Jun-03 6:39
protectorNick Parker28-Jun-03 6:39 
AnswerRe: MFC going by wayside? Pin
Ryan Binns27-Jun-03 17:08
Ryan Binns27-Jun-03 17:08 
GeneralDirectX directdraw, tiles... Pin
Kuniva27-Jun-03 7:50
Kuniva27-Jun-03 7:50 
I've been looking into DirectX lately, more specifically Directdraw (even though technically speaking that doesn't exist anymore), because i wanted to sort of mimic the GUI of a certain game. This game has a menu on startup which is built up out of several bitmaps, all placed neatly together so they form one image. Then there is the menu on it which is formed by just drawing over the main image, rectangles that contain the text for the menuitem, so the menuitems must have a background to match the main screen. When you move your mouse over one of these items, the bitmap can change so the text appears to highlight or whatever. Now i have two questions:

1) Why did they break appart the main background image in several pieces? I mean, what reason could there be? Why didn't they just make the background image one large bitmap and then just draw the menu over it, so they wouldn't have to assemble the pieces of the background image first?

2) When you put the pieces of the background image together, you get an image of 640 by 480 pixels. Now, in the game you can switch resolutions, for example to 1024*768. So this would mean the bitmap would get stretched, how do you do this in DirectX? Is there a function, or do you have to write your own function to calculate how many pixels will be representing one pixel now?

Thank you for your help.

P.S.: i do have a theory for the first: The measurements of the pieces can all be divided by 16,32,64 or whatever, basically most pieces (also for game textures) are either 32*32,64*64,128*128,128*256,256*256 so maybe they just wrote a function that only handles certain dimensions of bitmaps like PaintBM256by256(). But i would think it would be easy to detect the size...

Kuniva
--------------------------------------------

GeneralRe: DirectX directdraw, tiles... Pin
ZoogieZork28-Jun-03 7:21
ZoogieZork28-Jun-03 7:21 
GeneralRe: DirectX directdraw, tiles... Pin
Kuniva28-Jun-03 12:01
Kuniva28-Jun-03 12:01 
GeneralSetCurSel and GetCurSel() in MFC Pin
keegan27-Jun-03 7:12
keegan27-Jun-03 7:12 
GeneralRe: SetCurSel and GetCurSel() in MFC Pin
David Crow27-Jun-03 8:50
David Crow27-Jun-03 8:50 
GeneralRe: SetCurSel and GetCurSel() in MFC Pin
keegan27-Jun-03 9:26
keegan27-Jun-03 9:26 
GeneralRe: SetCurSel and GetCurSel() in MFC Pin
basementman27-Jun-03 9:46
basementman27-Jun-03 9:46 
GeneralRe: SetCurSel and GetCurSel() in MFC Pin
keegan27-Jun-03 10:05
keegan27-Jun-03 10:05 
GeneralRe: SetCurSel and GetCurSel() in MFC Pin
David Crow27-Jun-03 10:10
David Crow27-Jun-03 10:10 
GeneralRe: SetCurSel and GetCurSel() in MFC Pin
keegan27-Jun-03 10:22
keegan27-Jun-03 10:22 
GeneralRe: SetCurSel and GetCurSel() in MFC Pin
David Crow27-Jun-03 10:25
David Crow27-Jun-03 10:25 
Questionhow to use the esc key to stop a program Pin
johnstonsk27-Jun-03 6:43
johnstonsk27-Jun-03 6:43 
AnswerRe: how to use the esc key to stop a program Pin
keegan27-Jun-03 7:22
keegan27-Jun-03 7:22 
GeneralRe: how to use the esc key to stop a program Pin
johnstonsk27-Jun-03 7:37
johnstonsk27-Jun-03 7:37 
GeneralRe: how to use the esc key to stop a program Pin
keegan27-Jun-03 7:44
keegan27-Jun-03 7:44 
GeneralRe: how to use the esc key to stop a program Pin
johnstonsk27-Jun-03 8:30
johnstonsk27-Jun-03 8:30 
GeneralRe: how to use the esc key to stop a program Pin
keegan27-Jun-03 8:39
keegan27-Jun-03 8:39 
GeneralDLL entry point problem Pin
Andy H27-Jun-03 6:12
Andy H27-Jun-03 6:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.