Click here to Skip to main content
15,845,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionvtable Table for CLASS [modified] Pin
AmarnathSujji14-Jul-06 1:33
AmarnathSujji14-Jul-06 1:33 
AnswerRe: vtable Table for CLASS Pin
_AnsHUMAN_ 14-Jul-06 2:18
_AnsHUMAN_ 14-Jul-06 2:18 
GeneralRe: vtable Table for CLASS Pin
Sarvan AL14-Jul-06 2:38
Sarvan AL14-Jul-06 2:38 
GeneralRe: vtable Table for CLASS Pin
Stephen Hewitt14-Jul-06 3:30
Stephen Hewitt14-Jul-06 3:30 
Questionclose all child windows in MDI Pin
zeus_master14-Jul-06 0:48
zeus_master14-Jul-06 0:48 
AnswerRe: close all child windows in MDI Pin
Farhat Aisha14-Jul-06 1:03
Farhat Aisha14-Jul-06 1:03 
QuestionResizing an image to a Thumbnail Pin
racing5714-Jul-06 0:42
racing5714-Jul-06 0:42 
AnswerRe: Resizing an image to a Thumbnail Pin
Farhat Aisha14-Jul-06 1:18
Farhat Aisha14-Jul-06 1:18 
You have to create a thumbnail image by your self. Here is the code snippet for that

//lets say your original image is in BitmapOrg
BITMAP BmpInfo;
BitmapOrg.GetBitmap(&BmpInfo);

CDC *pDC=GetDC();
CDC MemDC,MemDC2;
if (MemDC.CreateCompatibleDC(pDC) && MemDC2.CreateCompatibleDC(pDC))
{
CBitmap Bitmap;
CSize szThumbnail(32,32);
if (Bitmap.CreateCompatibleBitmap(pDC,szThumbnail.cx,szThumbnail.cy))
{
CBitmap* pbmpOld=MemDC.SelectObject(&Bitmap);
CBitmap* pbmpOld2=pDC->SelectObject(&BitmapActual);
MemDC.StretchBlt(0,0,szThumbnail.cx,szThumbnail.cy,0,0,BmpInfo.bmWidth,BmpInfo.bmHeight,SRCCOPY); //this function will create a thumbnail

MemDC.SelectObject(pbmpOld);
MemDC2.SelectObject(pbmpOld2);
}
MemDC.DeleteDC();
MemDC2.DeleteDC();
}
ReleaseDC(pDC);

AnswerRe: Resizing an image to a Thumbnail Pin
Hamid_RT14-Jul-06 2:21
Hamid_RT14-Jul-06 2:21 
QuestionMessageBox Without any Button Pin
Manjunath S14-Jul-06 0:39
Manjunath S14-Jul-06 0:39 
AnswerRe: MessageBox Without any Button Pin
zeus_master14-Jul-06 0:44
zeus_master14-Jul-06 0:44 
AnswerRe: MessageBox Without any Button Pin
Aqueel14-Jul-06 2:06
Aqueel14-Jul-06 2:06 
AnswerRe: MessageBox Without any Button Pin
Hamid_RT14-Jul-06 2:22
Hamid_RT14-Jul-06 2:22 
AnswerRe: MessageBox Without any Button Pin
David Crow14-Jul-06 3:34
David Crow14-Jul-06 3:34 
Questionhow can list box display other language? Pin
mimimimilaw14-Jul-06 0:09
mimimimilaw14-Jul-06 0:09 
AnswerRe: how can list box display other language? Pin
Maxwell Chen14-Jul-06 0:39
Maxwell Chen14-Jul-06 0:39 
AnswerRe: how can list box display other language? Pin
eusto14-Jul-06 1:05
eusto14-Jul-06 1:05 
AnswerRe: how can list box display other language? Pin
Hamid_RT14-Jul-06 2:30
Hamid_RT14-Jul-06 2:30 
GeneralRe: how can list box display other language? Pin
mimimimilaw14-Jul-06 19:04
mimimimilaw14-Jul-06 19:04 
GeneralRe: how can list box display other language? Pin
Hamid_RT15-Jul-06 6:08
Hamid_RT15-Jul-06 6:08 
QuestionSpin control Pin
ashish dogra13-Jul-06 23:55
ashish dogra13-Jul-06 23:55 
AnswerRe: Spin control Pin
_AnsHUMAN_ 14-Jul-06 0:02
_AnsHUMAN_ 14-Jul-06 0:02 
GeneralRe: Spin control Pin
ashish dogra14-Jul-06 0:12
ashish dogra14-Jul-06 0:12 
GeneralRe: Spin control Pin
_AnsHUMAN_ 14-Jul-06 0:16
_AnsHUMAN_ 14-Jul-06 0:16 
GeneralRe: Spin control Pin
ashish dogra14-Jul-06 0:24
ashish dogra14-Jul-06 0:24 

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.