CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #3
    Join Date
    May 2010
    Posts
    77

    Re: Initial Splash Screen Configuration

    currently the positions of my bitmaps and buttons on the opening window are set in the IDD_Splash section, by physically moving them into the locations on the window. I put 2 all the way on the right edge. however, depending on the computer screen resolution, sometimes the bitmaps are on the edge, sometimes away from the edge. is there another way to display bitmaps and buttons more accurately? maybe the way windows can be displayed using proportions of the parent window, not in absolute terms?

    BOOL CSplashDlg::OnInitDialog()
    {
    CDialog::OnInitDialog();

    HICON hIcon10 = (HICON) ::LoadImage(GetModuleHandle(NULL),MAKEINTRESOURCE(IDI_EXIT2),IMAGE_ICON,60,32,LR_DEFAULTSIZE | LR_SHARED);

    ((CButton*)GetDlgItem(IDOK))->SetIcon(hIcon10);

    CRect rect;
    SystemParametersInfo(SPI_GETWORKAREA, 0, &rect, 0);
    MoveWindow(&rect);

    return TRUE;

    }
    Last edited by jimlau; May 27th, 2010 at 02:28 PM.

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