I’m working on a directx application and was wondering how I could add a regular window to the application, one which has text boxes, command buttons and all.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For a window to exist it will require a windows forms message pump :
A Win32 message pump typically looks something this and was the heart of win32 programming.
Today, the C# language tends to abstract the message pump away but you can still get to it.
You need a call to application.run to launch a windows forms with active message pump. see :
http://msdn.microsoft.com/en-us/library/ms157900.aspx
Hey Ed: This is something you might be looking for :
http://www.directxtutorial.com/Tutorial9/A-Win32/dx9A3.aspx . It talks about creating a window from directx