我做了一个多文档的显示图片的程序。我想在程序一启动的时候将c:/picture文件夹里面的所有图片都同时打开,整整齐齐的平铺排列。我在BOOL  CtestApp::InitInstance()中用如下方法:
         CString NameH;
CFileFind A;
BOOL Resu=A.FindFile("C:\\Documents and Settings\\wxs\\My   Documents\\My Pictures\\*.bmp");
while(Resu)
{
Resu=A.FindNextFile();
NameH=A.GetFileName();

cmdInfo.m_strFileName="C:/Documents and Settings/wxs/My Documents/My Pictures/" +NameH;
cmdInfo.m_nShellCommand = CCommandLineInfo::FileOpen;
OnFileNew();
pMainFrame->MDITile();

}
结果,只有许多空的白白的窗口,仅仅有一幅图片打开了。
求大哥们帮帮我,指点迷津阿!