I have embedded the skinmagic file SMF into the MFC MainFrame file. This is a SDI program. And there appears some strange phonomenon. I use the OPENFILENAME struture to open file, and it popup a dialog which is with the same skin with the mainframe. But this dialog has a button name HELP bottom the dialog. and i cant remove the button. it's inactive. when i zoom in or out the dialog. the button will disappear and appear. so it confused me.
This is the OPENFILENAME struture which i use.
void CBoard::OnClickedButton8()
{
char lpszFile[256] = {'\0'};
CString StrFolder;
OPENFILENAME OpenFileName;
ZeroMemory(&OpenFileName, sizeof(OPENFILENAME));
OpenFileName.lStructSize = sizeof(OPENFILENAME);
OpenFileName.hwndOwner=GetSafeHwnd();
OpenFileName.lpstrFile = lpszFile;
OpenFileName.nMaxFile = 255;
OpenFileName.lpstrFilter = "JpegFiles(*.jpg)\0*.jpg\0\BitmapFiles(*.bmp)\0*.bmp\0";
OpenFileName.nFilterIndex = 1;
GetOpenFileName(&OpenFileName);
m_pv->loadsideview(lpszFile);
m_pv->getOutline();
m_pv->GetMidoutline();
m_pv->GetLegoutline();
m_pv->xzGetoutBdr(m_pv->midMin2Top,m_pv->midMax2Top);
}
and this is my smf skinmagic code
VERIFY( 1 == InitSkinMagicLib(AfxGetInstanceHandle(), NULL, NULL, NULL ));
VERIFY( 1 == LoadSkinFromResource(NULL, (LPCTSTR)IDR_SMF1 ,"SMF" ));
The skinmagic embedded into the MFC. there always are some strange things happend . so could anyone help me ?