• Advertisement

Archived

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

Display button problem using FlipToGDISurface!

This topic is 5784 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