Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Icon not visible on the dialog box

Status
Not open for further replies.

zulfi1234

Instructor
Jul 2, 2000
32
PK
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(&quot;ICON1&quot;, IDI_ICON1 ¦WS_CHILD ¦ WS_VISIBLE, ControlRect, this, IDI_ICON1);<br> HICON&nbsp;&nbsp;hIcon;<br> hIcon = LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_ICON1));<br> StaticIcon.SetIcon(hIcon);<br> // TODO: Add extra initialization here<br> <br> return TRUE;&nbsp;&nbsp;// return TRUE unless you set the focus to a control<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// EXCEPTION: OCX Property Pages should return FALSE<br>}<br><br>Zulfi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top