0

Hi
I try to change images and location.
first I define CStatic array (m_x)
when i try to show him:
m_x[0].SetBitmap(hBitmap);
I have error:
"expression must have class type" (on m_x[0])
what is my mistake????

CStatic *m_x[2];	// = {&m_1, &m_2};
	m_x[0]= &m_1;
	
	//Row 1		
	CString ReqBMP(Letter[m_A1]);
	hBitmap = (HBITMAP)LoadImage(NULL, ReqBMP, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );	//LR_MONOCHROME
	m_x[0].SetBitmap(hBitmap);		//variable for 
	GetDlgItem(IDC_1)->ShowWindow(true);

Thanks,

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Jacobah
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.