void OpenFiles(HWND hWnd)
{
OPENFILENAME ofn;
memset(&ofn, 0, sizeof(OPENFILENAME));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = hWnd;
ofn.lpstrFilter =
"x files(*.x)\0*.x\0All Files(*.*)\0*.*\0\0";
ofn.lpstrFile = FileName;
ofn.nMaxFile = MAX_PATH;
ofn.Flags = OFN_FILEMUSTEXIST;
ofn.lpstrDefExt = "x";
ofn.nMaxFileTitle = 64;
ofn.lpstrFileTitle = FileTitle;
ofn.lpstrTitle = "xファイルを選択してください";
if (GetOpenFileName(&ofn)) {

InvalidateRect(hWnd, NULL, TRUE);

strcpy( sm.create_skin_mesh_str.file_name, FileName );
if( S_OK == sm.CreateSkinMesh() )
{
show = 1;
sm.skin_mesh_str.vecPos = D3DXVECTOR3( 0, 0, 0 );
}

}
return;
}