Can somebody please help me in this regard<br><br>BOOL CModalDlg::OnInitDialog() <br>{<br> CDialog::OnInitDialog();<br> ControlRect.top = 10;<br> ControlRect.bottom = ControlRect.top + 200;;<br> ControlRect.left = 50;<br> ControlRect.right = ControlRect.left + 200;<br> //ControlRect.SetRect(200, 50, 200, 60);<br> StaticIcon.Create("ICON1", IDI_ICON1 ¦WS_CHILD ¦ WS_VISIBLE, ControlRect, this, IDI_ICON1);<br> HICON hIcon;<br> hIcon = LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_ICON1));<br> StaticIcon.SetIcon(hIcon);<br> // TODO: Add extra initialization here<br> <br> return TRUE; // return TRUE unless you set the focus to a control<br> // EXCEPTION: OCX Property Pages should return FALSE<br>}<br><br>Zulfi