Click here to Skip to main content
15,916,432 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC6 and which Service pack? Pin
Anonymous22-Aug-02 3:13
Anonymous22-Aug-02 3:13 
AnswerRe: VC6 and which Service pack? Pin
Stephane Rodriguez.22-Aug-02 3:18
Stephane Rodriguez.22-Aug-02 3:18 
GeneralRe: VC6 and which Service pack? STL and VC? Pin
Anonymous22-Aug-02 4:44
Anonymous22-Aug-02 4:44 
GeneralRe: VC6 and which Service pack? STL and VC? Pin
Stephane Rodriguez.22-Aug-02 6:32
Stephane Rodriguez.22-Aug-02 6:32 
GeneralRe: VC6 and which Service pack? STL and VC? Pin
Anonymous22-Aug-02 22:44
Anonymous22-Aug-02 22:44 
GeneralRe: VC6 and which Service pack? STL and VC? Pin
Todd Smith22-Aug-02 17:34
Todd Smith22-Aug-02 17:34 
GeneralHiding a dialog on view switch Pin
Poul Haahr Klemmensen22-Aug-02 2:56
Poul Haahr Klemmensen22-Aug-02 2:56 
Generalthumbnail using imgthumb ActiveX control Pin
toon22-Aug-02 2:06
toon22-Aug-02 2:06 
Hi.
I want to display thumbnails of images. I tried using the "Imaging for Windows" ActiveX control imgthumb.ocx (Kodak image thumbnail) that comes along with Windows2000. I use VC++6.0.
I want to dynamically create the thumbnails. I am unable to figure out which functions to call.
Here is my code snippet.
It does not show any error, but nothing is displayed.
Can you point out what is wrong?

m_thumb = new CImgThumbnail;
BOOL res = m_thumb->Create("Thumbnail", WS_CHILD | WS_VISIBLE | WS_BORDER,
CRect(100, 100, 170, 170), this, 1341);
m_thumb->SetThumbWidth(50);
m_thumb->SetThumbHeight(50);
m_thumb->SetImage("c:\\flowers.jpg");
m_thumb->SetEnabled(true);
m_thumb->SetThumbCaption("seen???");
m_thumb->SetThumbBackColor(0);
m_thumb->SetThumbCaptionColor(100);
VARIANT image, page;
BSTR bst;
CString str="c:\\database_n\\flowers\\21099_wallpaper110.jpg";
bst = (unsigned short *)str.GetAt(0);
image.vt = VT_BSTR;
image.bstrVal = bst;
page.vt = VT_I2;
page.iVal = 1;
m_thumb->UISetThumbSize(image, page);
VARIANT thumbno, options;
thumbno.vt = VT_I4;
thumbno.lVal = 1;
options.vt = VT_I2;
options.iVal = 0;
CString str1 = m_thumb->GetImage();
m_thumb->DisplayThumbs(thumbno, options);
//m_thumb->Refresh();

However, the thumbnail is displayed when I put the control in a dialog box (using the editor), and set its properties.
Where am I going wrong in the dynamic creation process?
Hope somebody can throw some light.
Thanks.

Logic is a systematic method of coming to the wrong conclusion with
confidence.
GeneralRe: thumbnail using imgthumb ActiveX control Pin
Stephane Rodriguez.22-Aug-02 3:16
Stephane Rodriguez.22-Aug-02 3:16 
GeneralRe: thumbnail using imgthumb ActiveX control Pin
toon22-Aug-02 22:36
toon22-Aug-02 22:36 
GeneralRe: thumbnail using imgthumb ActiveX control Pin
Stephane Rodriguez.22-Aug-02 22:48
Stephane Rodriguez.22-Aug-02 22:48 
GeneralRe: thumbnail using imgthumb ActiveX control Pin
toon26-Aug-02 23:52
toon26-Aug-02 23:52 
GeneralRe: thumbnail using imgthumb ActiveX control Pin
Stephane Rodriguez.27-Aug-02 0:38
Stephane Rodriguez.27-Aug-02 0:38 
GeneralStatus Bar Pin
Ruca22-Aug-02 2:07
Ruca22-Aug-02 2:07 
QuestionHow I can draw bitmap on window caption ? Pin
nikulin_andrey22-Aug-02 1:36
nikulin_andrey22-Aug-02 1:36 
AnswerRe: How I can draw bitmap on window caption ? Pin
Tomasz Sowinski22-Aug-02 2:10
Tomasz Sowinski22-Aug-02 2:10 
AnswerRe: How I can draw bitmap on window caption ? Pin
Atlantys22-Aug-02 9:36
Atlantys22-Aug-02 9:36 
GeneralEncoding with DOM Pin
Hans Ruck22-Aug-02 0:46
Hans Ruck22-Aug-02 0:46 
GeneralCFtpConnection::Command() - Last attempt before madness :) Pin
carrie21-Aug-02 23:50
carrie21-Aug-02 23:50 
GeneralRe: CFtpConnection::Command() - Last attempt before madness :) Pin
Arjan Schouten22-Aug-02 3:05
Arjan Schouten22-Aug-02 3:05 
GeneralRe: CFtpConnection::Command() - Last attempt before madness :) Pin
carrie22-Aug-02 12:25
carrie22-Aug-02 12:25 
GeneralProblems importing DLL extension Classes Pin
Anonymous21-Aug-02 23:31
Anonymous21-Aug-02 23:31 
GeneralRe: Problems importing DLL extension Classes Pin
Brian Azzopardi22-Aug-02 0:18
Brian Azzopardi22-Aug-02 0:18 
GeneralRe: Problems importing DLL extension Classes Pin
Anonymous23-Aug-02 1:56
Anonymous23-Aug-02 1:56 
Generalowner drawn controls Pin
nss21-Aug-02 23:30
nss21-Aug-02 23:30 

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.