Loading gif transparent license#
if not then just download the whole project and see the example - it is really easy, I promise.ġ7 July 2002 - updated to allow multiple images to be displayed License well I am though :) Thanks for reading this and I hope this is a little clear to you. Procedure: RepaintPictures // // HWND hWnd = The window handle frees all the pictures (on // that window) example: when it gets Msg WM_CLOSEI guess all the people are laughing now why so much companies want to make money with libraries that can do the same (or maybe a little more), maybe not?. example: when it gets Msg WM_PAINT void RemovePictures(HWND hWnd) Procedure: RepaintPictures // // HWND hWnd = The window handle that needs to be repainted. RC file) // example: ID_BLAH // int PositionX = The X coordinate on the window where the picture // should popup :) // int PositionY = The Y coordinate. Procedure: AddPicture // // HWND hWnd = The handle of the window where you want to add a picture // int ResourceHandle = The RecourceId (u can use the ALIAS you gave in.
Loading gif transparent code#
(I could do it, but it would take a lot more time).Ĭopy Code void AddPicture(HWND hWnd, int ResourceHandle, int PositionX, int PositionY) I was thinking of making a class of all this, but well I know C a lot better then C++ so that is why I didn't make one.
Ok let's go to some code, I wrote a linked list to store all the pictures in memory.
Loading gif transparent free#
And a final function to free the pictures from memory.To add the picture to the window (only have to give the resource Id and the position).I rewrote all the routines and removed the original calls to the header. I wanted to make my app so small as possible, and all this libs were making mine bigger and bigger.Īlright, well I found 1 source that was useful.The sources were very complicated, why should we reinvent the wheel?.They where coded in C++ (don't care of course but you don't have to use it).The sources needed almost always a very BIG library, and sometimes they want money for it too.Most of the time they used MFC (real MFC so it needs the DLL's), I don't like MFC (but that is possible because I'm from the ASM world).The bad thing only with the sources were that:
And I only found a "Few" (like 10) examples on that. Well where should I start? Yesterday, I tried to find a source for getting my JPG and GIF files in a Window. If you are a beginner you may just want to scroll down to the end and just use the module )