Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFile creation time Pin
tasumisra19-May-11 22:56
tasumisra19-May-11 22:56 
AnswerRe: File creation time Pin
Richard MacCutchan19-May-11 23:18
mveRichard MacCutchan19-May-11 23:18 
GeneralRe: File creation time Pin
mosealex20-May-11 3:55
mosealex20-May-11 3:55 
GeneralRe: File creation time Pin
Richard MacCutchan20-May-11 4:23
mveRichard MacCutchan20-May-11 4:23 
AnswerRe: File creation time Pin
Chandrasekharan P19-May-11 23:25
Chandrasekharan P19-May-11 23:25 
QuestionDrawImage Pin
john563219-May-11 21:53
john563219-May-11 21:53 
GeneralRe: DrawImage Pin
Cool_Dev19-May-11 22:17
Cool_Dev19-May-11 22:17 
GeneralRe: DrawImage Pin
john563219-May-11 23:07
john563219-May-11 23:07 
using BitMlt:

CRect rect;
	this->GetWindowRect( &rect );
	this->GetParent()->ScreenToClient( rect );
 CBitmap img;
   CDC dc;
   BITMAP bmp;
   img.LoadBitmap(m_nImageID);
   img.GetBitmap(&bmp);
   CDC* pDC = this->GetDC();
   dc.CreateCompatibleDC(pDC);
   CBitmap* pOld = dc.SelectObject(&img);
pDC->BitBlt(rect.left, rect.top, bmp.bmWidth, bmp.bmHeight, &dc, 0, 0, SRCCOPY);


using Image::DrawImage

CRect rect;
	this->GetWindowRect( &rect );
	this->GetParent()->ScreenToClient( rect );
m_img = Gdiplus::Bitmap::FromResource(GetModuleHandle(0),MAKEINTRESOURCE(nImage));
grpx.DrawImage(m_img, 0, 0, m_img->GetWidth(),m_img->GetHeight());

GeneralRe: DrawImage Pin
Richard MacCutchan19-May-11 23:21
mveRichard MacCutchan19-May-11 23:21 
GeneralRe: DrawImage Pin
john563219-May-11 23:26
john563219-May-11 23:26 
GeneralRe: DrawImage Pin
Richard MacCutchan19-May-11 23:54
mveRichard MacCutchan19-May-11 23:54 
GeneralRe: DrawImage Pin
tagopi19-May-11 23:27
tagopi19-May-11 23:27 
QuestionHow can i create one button for two events in C# 2008 vs? Pin
FeniksReborn19-May-11 21:27
FeniksReborn19-May-11 21:27 
AnswerRe: How can i create one button for two events in C# 2008 vs? Pin
Rhuros19-May-11 21:44
professionalRhuros19-May-11 21:44 
GeneralRe: How can i create one button for two events in C# 2008 vs? Pin
Peter_in_278019-May-11 22:31
professionalPeter_in_278019-May-11 22:31 
GeneralRe: How can i create one button for two events in C# 2008 vs? Pin
Rhuros19-May-11 22:37
professionalRhuros19-May-11 22:37 
GeneralRe: How can i create one button for two events in C# 2008 vs? Pin
Malli_S20-May-11 1:08
Malli_S20-May-11 1:08 
QuestionHow send/reseive SMS with a GSM Modem in C++(MFC) Pin
Hadi Dayvary19-May-11 21:26
professionalHadi Dayvary19-May-11 21:26 
AnswerRe: How send/reseive SMS with a GSM Modem in C++(MFC) Pin
Rhuros19-May-11 21:47
professionalRhuros19-May-11 21:47 
QuestionOpen and display any image on dialog Pin
manju 319-May-11 20:54
manju 319-May-11 20:54 
AnswerRe: Open and display any image on dialog Pin
ShilpiP19-May-11 21:14
ShilpiP19-May-11 21:14 
QuestionMFC, How to activate one document template among multiple document templates Pin
swandream19-May-11 15:11
swandream19-May-11 15:11 
QuestionEncrypting Archives with AES Pin
sarfaraznawaz19-May-11 1:57
sarfaraznawaz19-May-11 1:57 
AnswerRe: Encrypting Archives with AES Pin
Chris Losinger19-May-11 3:37
professionalChris Losinger19-May-11 3:37 
GeneralRe: Encrypting Archives with AES Pin
sarfaraznawaz19-May-11 19:53
sarfaraznawaz19-May-11 19:53 

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.