Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

wah_on_2

Display button problem using FlipToGDISurface!

This topic is 6001 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I tried that i can''t display a button in a window using DirectDraw7::FlipToGDISurface(). I read the sample of the DirectX SDK about display Dialog in FullScreen mode. The sample can work normally(the dialog can display). However, i tried to add a button to the sample program, the button cannot display. I want to know can i display a button in a window under full screen mode? How can i display button if the answer is yes? I added this code after the code that is creates dialog.
  
m_ChWnd = CreateWindow("BUTTON", "", WS_CHILD | BS_PUSHBUTTON | WS_VISIBLE, 0, 0, 200, 200, hWnd, (HMENU)CntlID, hInst, NULL);
  

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!