PDA

View Full Version : MFC pictureBox and corresponding Qt widget



stepwolf
21st July 2010, 10:23
In my MFC application i can display grabbed images(frmaes) on a picturebox control by giving its m_hWnd

CWnd* image = GetDlgItem(IDC_DISPLAY);
MdispSelectWindow(...., ..... , image->m_hWnd); //Matrox imaging library method(MIL-Lite 9.0);

so i want to display grabbed images(frmaes) on a qt label

HDC dc = GetDC(ui.label->winId());
HWND hwnd = WindowFromDC(dc);
MdispSelectWindow(...., ..... , hwnd); //Matrox imaging library method(MIL-Lite 9.0)

When running this code the grabbed frame on the label keeps blinking and a part of frame goes up and down.
What should i do? Which widget is better for this purpose?

Thanks.