CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    151

    Removing the caption border (FULL SCREEN)

    I am wanting to go full screen, I have done this:
    (HANDWRITTEN CODE, Syntax may be incorrect)
    Code:
    HWND hWnd = CreateWindowEx(NULL, szWindowClass, szWindowTitle, NULL, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
    
    if (!hWnd)
    {
        return FALSE;
    }
    
    ShowWindow(hWnd, SW_SHOWMAXIMIZED);
    UpdateWindow(hWnd);
    That gets the desired result, except the Caption Border (the blue bar up the top of all windows) is still there...

    How can I remove that?

    Cheers

  2. #2
    Join Date
    May 2007
    Posts
    811

    Re: Removing the caption border (FULL SCREEN)

    I think you should only use WS_POPUP on dwStyle parameter.
    Now if this is for DirectX then lookup IDirect3D9::CreateDevice function.

  3. #3
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    151

    Re: Removing the caption border (FULL SCREEN)

    WS_POPUP did the job, thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured