need help displaying and ICON


I crate a static inside a dialog to display an icon, but when I run the application nothing appears on the screen What I am doing is this

1
2
3
4
5
6
7

CStatic myStatic;
	
myStatic.Create(TEXT(""), WS_VISIBLE|SS_ICON| SS_CENTERIMAGE, CRect(100,100,120,120), this,1);

myStatic.SetIcon( AfxGetApp()->LoadIcon(ID_CONEXION));
Topic archived. No new replies allowed.