|
-
May 26th, 2010, 10:47 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|