Device->SetDialogBoxMode(true);

This is a discussion on Device->SetDialogBoxMode(true); within the Game Programming forums, part of the General Programming Boards category; for some reason i am unable to see any child windows if i call this device member , in msdn ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    306

    Device->SetDialogBoxMode(true);

    for some reason i am unable to see any child windows if i call this device member , in msdn it cleary says i should be able to view gdi windows on the device , i have all the param settings set


    d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
    d3dpp.Flags=D3DPRESENTFLAG_LOCKABLE_BACKBUFFER;
    d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8;

    in wndproc i have

    Code:
    case WM_CREATE:
    			
    	    hmodule = GetModuleHandle(0);
    
    		Child = CreateWindowEx(NULL,
                              "BUTTON",
                              "test",
                              WS_CHILD | WS_VISIBLE ,
                              40,30,
                              50, 60,
                              hWnd,
                              NULL,
                              hmodule,
                              NULL);
    		break;

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    That may only apply to dialog boxes. I would not recommend mixing GDI windows with Direct3D.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Identify dynamic IP address of network device
    By BobS0327 in forum Tech Board
    Replies: 2
    Last Post: 02-21-2006, 12:49 PM
  2. Device Driver: sysfs confusion
    By filker0 in forum Linux Programming
    Replies: 0
    Last Post: 12-02-2005, 10:36 AM
  3. Modem in Linux need help fast please!
    By xxxrugby in forum Tech Board
    Replies: 0
    Last Post: 03-30-2005, 03:10 PM
  4. Replies: 4
    Last Post: 06-30-2004, 03:11 PM
  5. Device problem
    By John22 in forum C Programming
    Replies: 0
    Last Post: 12-19-2002, 11:02 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21