DirectX - How to use Windows scrollbars w/ DX?
Posted on 2004-07-31
Hello All -
I'm working on a "traditional" board game style, map based, strategy game. Developing w/ VC++ & DirectX. I have an image representing the game board and want to display it in the client window area of a windowed (not full screen) app. I can get the image to show up, but can't figure out how to get the image (which is larger than the window size) to scroll in response to scroll bars. I don't want to have to "compute" the new window view area each time I scroll if I don't have to. Anyone have tips / tutorials on how to do this? I've read a lot of the online tutorials that go as far as "and there's your sphere on the screen", but don't really discuss how to integrate the UI functionailty with the DirectX object's appearance/behavior.