It would be something like this?
API_ICON_CREATE( oDlg:hWnd, memoread("M III.png" ) )
HB_FUNC( API_ICON_CREATE )
{
QMainWindow *pWidget = static_cast<QMainWindow *>(hb_parptr(1));
if (!pWidget)
return;
QImage pImage;
pImage.loadFromData( (unsigned char *) hb_parc(2), (int)
hb_parclen(2), "PNG" );
QLabel *pLabel= new QLabel(pWidget);
pLabel->setPixmap(QPixmap::fromImage(pImage));
pLabel->adjustSize();
pLabel->show();
pWidget->adjustSize();
}
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour