![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
How to show CStatic control using Gdiplus::Graphics classHello members,
I am using MFC for my project in visual studio 2008. I have a scroll view. I am showing bmp/jpg files on it by using Graphics class provided by Gdiplus namespace. The code for that is as below. //---------------------------------------------------------------- CPP / C++ / C Code:
I am receiving CDC in this function. m_pGDIPlusBitmap->m_pBitmap populated by bmp or jpg file during runtime. //----------------------------------------------------------------- Now I want to show an animated gif file. After a lot of search, I found a class called CPictureEx derived from CStatic class. This CPictureEx class is responsible for loading given gif file and play it. Code for this is as below. //------------------------------------------------------------------ //declare object of this class in header file. CPP / C++ / C Code:
//In cpp file CPP / C++ / C Code:
Here it is working fine, and I am able to see gif file on scroll view with animation. //------------------------------------------------------------------ Now I am facing problem how to load m_Picture by using Gdiplus::Graphics class inside the below function. CPP / C++ / C Code:
Any guidance shall he highly appreciated. Thank you very much. Bibhu Last edited by LuciWiz : 25-Jun-2012 at 05:41.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags
|
|||
Recent GIDBlog
Match IP in CIDR by gidnetwork
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| error C2064: term does not evaluate to a function taking 1 arguments | AndyCharles | C++ Forum | 1 | 11-Sep-2011 10:45 |
| Scope issues with derived class template in g++ | Blake | C++ Forum | 1 | 04-Apr-2011 14:20 |
| NetBeans - Inventory Program | biglez123 | Java Forum | 1 | 23-Jan-2011 19:48 |
| Class using another class | blackxs | C++ Forum | 1 | 26-Nov-2010 06:19 |
| RichEdit Demo | Max Payne | MS Visual C++ / MFC Forum | 3 | 06-Oct-2004 07:19 |
Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The