Click here to Skip to main content
15,891,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I use an image_click more than once? Pin
Fenix26-Oct-09 5:14
Fenix26-Oct-09 5:14 
AnswerRe: How can I use an image_click more than once? Pin
Randor 6-Oct-09 6:50
professional Randor 6-Oct-09 6:50 
GeneralRe: How can I use an image_click more than once? Pin
Fenix26-Oct-09 13:05
Fenix26-Oct-09 13:05 
GeneralRe: How can I use an image_click more than once? Pin
PJ Arends6-Oct-09 14:25
professionalPJ Arends6-Oct-09 14:25 
AnswerRe: How can I use an image_click more than once? Pin
PJ Arends6-Oct-09 14:30
professionalPJ Arends6-Oct-09 14:30 
QuestionOpen multipage TIFF w/ GDI+ Pin
sashoalm6-Oct-09 4:53
sashoalm6-Oct-09 4:53 
AnswerRe: Open multipage TIFF w/ GDI+ Pin
Randor 6-Oct-09 6:48
professional Randor 6-Oct-09 6:48 
AnswerRe: Open multipage TIFF w/ GDI+ Pin
PJ Arends6-Oct-09 7:42
professionalPJ Arends6-Oct-09 7:42 
Here is the code I use for loading multipage images. It works for animated gifs as well as tiffs. It does not work for multi image icons however.
Gdiplus::Image Image(static_cast<LPCWSTR>(CT2W(FilePath)));
if (Gdiplus::Ok == Image.GetLastStatus())
{
    GUID DimensionID;
    Image.GetFrameDimensionsList(&DimensionID, 1);
    UINT Frames = Image.GetFrameCount(&DimensionID);

    for (UINT CurrentFrame = 0; CurrentFrame < Frames; ++CurrentFrame)
    {
        if (Gdiplus::Ok == Image.SelectActiveFrame(&DimensionID, CurrentFrame))
        {



You may be right
I may be crazy
-- Billy Joel --


Within you lies the power for good - Use it!

GeneralRe: Open multipage TIFF w/ GDI+ Pin
sashoalm6-Oct-09 10:52
sashoalm6-Oct-09 10:52 
QuestionHow to build visual c++ code using adsi Pin
raja 46-Oct-09 4:12
raja 46-Oct-09 4:12 
AnswerRe: How to build visual c++ code using adsi Pin
David Crow6-Oct-09 5:11
David Crow6-Oct-09 5:11 
Questionerror PRJ 0019:A tool returned an error code from performing custom build set up Pin
narendragrandhi5-Oct-09 23:55
narendragrandhi5-Oct-09 23:55 
AnswerRe: error PRJ 0019:A tool returned an error code from performing custom build set up Pin
David Crow6-Oct-09 3:16
David Crow6-Oct-09 3:16 
QuestionStorage for Statis Data members Pin
AkashAg5-Oct-09 23:18
AkashAg5-Oct-09 23:18 
AnswerRe: Storage for Statis Data members Pin
CPallini5-Oct-09 23:33
mveCPallini5-Oct-09 23:33 
AnswerRe: Storage for Statis Data members Pin
Richard MacCutchan5-Oct-09 23:35
mveRichard MacCutchan5-Oct-09 23:35 
GeneralRe: Storage for Statis Data members Pin
AkashAg5-Oct-09 23:59
AkashAg5-Oct-09 23:59 
QuestionRe: Storage for Statis Data members Pin
CPallini6-Oct-09 0:14
mveCPallini6-Oct-09 0:14 
GeneralRe: Storage for Statis Data members Pin
Richard MacCutchan6-Oct-09 0:43
mveRichard MacCutchan6-Oct-09 0:43 
AnswerRe: Storage for Statis Data members Pin
santhosh-padamatinti5-Oct-09 23:56
santhosh-padamatinti5-Oct-09 23:56 
GeneralRe: Storage for Statis Data members Pin
Richard MacCutchan6-Oct-09 0:47
mveRichard MacCutchan6-Oct-09 0:47 
QuestionIndication of FileNames [modified] Pin
Chandrasekharan P5-Oct-09 22:48
Chandrasekharan P5-Oct-09 22:48 
AnswerRe: Indication of FileNames Pin
Cedric Moonen5-Oct-09 23:09
Cedric Moonen5-Oct-09 23:09 
AnswerRe: Indication of FileNames Pin
David Crow6-Oct-09 3:06
David Crow6-Oct-09 3:06 
QuestionShell title Pin
Souldrift5-Oct-09 22:23
Souldrift5-Oct-09 22:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.