CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    1

    MFC CBitmap class

    I can open and view an bitmap in an SDI or MDI app but for my school project I need to be able to use a bitmap that is not included in the exe. How would I go about loading it from the hard disk? Any help would be great. Thanks.


  2. #2
    Join Date
    May 1999
    Posts
    8

    Re: MFC CBitmap class

    You should be able to use the LoadImage function and include the LR_LOADFROMFILE flag in the fuLoad parameter. See the documentation on LoadImage for more details.

    Kevin


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured