Sign in to follow this  
Anddos

creating buttons on the device and windows etc,

Recommended Posts

if i have WS_CHILD on windows that i want to show on the device will they apear in full screen mode , WS_CLIPCHILDREN will be on a style for the main window , thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by Anddos
if i have WS_CHILD on windows that i want to show on the device will they apear in full screen mode , WS_CLIPCHILDREN will be on a style for the main window ,
thanks
What language and Direct3D version? And why do you want to do this? Mixing GDI and D3D is an excelent way to utterly rape your framerate and run into all sorts of problems.

Share this post


Link to post
Share on other sites
Look at the CustomUI sample in the DirectX SDK, or run a search for Direct3D GUI's. Typically you'll either use a 3rd party library for your UI or you'll create your own that is implemented in terms of Direct3D. As Steve said - you typically don't mix GDI/Win32 content with Direct3D unless its for a tool.

hth
Jack

Share this post


Link to post
Share on other sites
Quote:
Original post by Anddos
is the button design stored in a .dds file which is made in something like paintshop or photoshop?


It can be done this way, whatever method you use basically you are drawing it to the screen then checking mouse coordinates to check whether they are within the edges and whether the mouse button is down.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this