Displaying Bitmap with Scrolling

来源:互联网 发布:财务年终总结数据分析 编辑:程序博客网 时间:2024/04/29 00:41

http://www.codeproject.com/bitmap/bmpscroll.asp?df=100&forumid=13476&fr=26#xx473579xx

上面的是我今天测试的东东.

添加的打开文件对话框的部分:

    char szFilter[]="BMP File|*.bmp|All files|*.*||";
    static int nIndex=1;
    BOOL bLoadFromFile=TRUE;
    CFileDialog Filedlg(TRUE,NULL,NULL,OFN_HIDEREADONLY,szFilter);
    Filedlg.m_ofn.nFilterIndex=(DWORD)nIndex;
    if(dlgFile.DoModal()==IDOK)
    {
        CString szPathName=dlgFile.GetPathName();
        szPathName.MakeUpper();

........................}

public:
    CRect rectStaticClient;
 CSize m_size;
 CPoint m_pt;

但是最终还是没有显示出图片来:-(

 

原创粉丝点击