Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionvtable Table for CLASS [modified] Pin
AmarnathSujji14-Jul-06 0:33
AmarnathSujji14-Jul-06 0:33 
AnswerRe: vtable Table for CLASS Pin
_AnsHUMAN_ 14-Jul-06 1:18
_AnsHUMAN_ 14-Jul-06 1:18 
GeneralRe: vtable Table for CLASS Pin
Sarvan AL14-Jul-06 1:38
Sarvan AL14-Jul-06 1:38 
GeneralRe: vtable Table for CLASS Pin
Stephen Hewitt14-Jul-06 2:30
Stephen Hewitt14-Jul-06 2:30 
Questionclose all child windows in MDI Pin
zeus_master13-Jul-06 23:48
zeus_master13-Jul-06 23:48 
AnswerRe: close all child windows in MDI Pin
Farhat Aisha14-Jul-06 0:03
Farhat Aisha14-Jul-06 0:03 
QuestionResizing an image to a Thumbnail Pin
racing5713-Jul-06 23:42
racing5713-Jul-06 23:42 
AnswerRe: Resizing an image to a Thumbnail Pin
Farhat Aisha14-Jul-06 0:18
Farhat Aisha14-Jul-06 0: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 1:21
Hamid_RT14-Jul-06 1:21 
QuestionMessageBox Without any Button Pin
Manjunath S13-Jul-06 23:39
Manjunath S13-Jul-06 23:39 
AnswerRe: MessageBox Without any Button Pin
zeus_master13-Jul-06 23:44
zeus_master13-Jul-06 23:44 
AnswerRe: MessageBox Without any Button Pin
Aqueel14-Jul-06 1:06
Aqueel14-Jul-06 1:06 
AnswerRe: MessageBox Without any Button Pin
Hamid_RT14-Jul-06 1:22
Hamid_RT14-Jul-06 1:22 
AnswerRe: MessageBox Without any Button Pin
David Crow14-Jul-06 2:34
David Crow14-Jul-06 2:34 
Questionhow can list box display other language? Pin
mimimimilaw13-Jul-06 23:09
mimimimilaw13-Jul-06 23:09 
AnswerRe: how can list box display other language? Pin
Maxwell Chen13-Jul-06 23:39
Maxwell Chen13-Jul-06 23:39 
AnswerRe: how can list box display other language? Pin
eusto14-Jul-06 0:05
eusto14-Jul-06 0:05 
AnswerRe: how can list box display other language? Pin
Hamid_RT14-Jul-06 1:30
Hamid_RT14-Jul-06 1:30 
GeneralRe: how can list box display other language? Pin
mimimimilaw14-Jul-06 18:04
mimimimilaw14-Jul-06 18:04 
GeneralRe: how can list box display other language? Pin
Hamid_RT15-Jul-06 5:08
Hamid_RT15-Jul-06 5:08 
QuestionSpin control Pin
ashish dogra13-Jul-06 22:55
ashish dogra13-Jul-06 22:55 
AnswerRe: Spin control Pin
_AnsHUMAN_ 13-Jul-06 23:02
_AnsHUMAN_ 13-Jul-06 23:02 
GeneralRe: Spin control Pin
ashish dogra13-Jul-06 23:12
ashish dogra13-Jul-06 23:12 
GeneralRe: Spin control Pin
_AnsHUMAN_ 13-Jul-06 23:16
_AnsHUMAN_ 13-Jul-06 23:16 
GeneralRe: Spin control Pin
ashish dogra13-Jul-06 23:24
ashish dogra13-Jul-06 23: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.