Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: Can a modeless dialog box be a main window PinmemberForNow30-Jan-13 8:13 
GeneralRe: Can a modeless dialog box be a main window PinmvpRichard MacCutchan30-Jan-13 9:07 
AnswerRe: Can a modeless dialog box be a main window PinmemberErudite_Eric30-Jan-13 3:04 
GeneralRe: Can a modeless dialog box be a main window PinmemberForNow30-Jan-13 7:31 
QuestionAnyone heard of an Anonymous Statistics / User Experience API or Toolkit PinmemberBlake Miller29-Jan-13 6:11 
QuestionHow to load a png image in PictureControl? PingroupVCProgrammer29-Jan-13 1:41 
QuestionRe: How to load a png image in PictureControl? PinmvpRichard MacCutchan29-Jan-13 3:33 
AnswerRe: How to load a png image in PictureControl? Pingroupyu-jian29-Jan-13 15:40 
#include "atlimage.h"

Image*	m_pImage;
 
char *pStr = strTempIMGPath.GetBuffer(0);
int size = MultiByteToWideChar(GetACP(), 0, pStr, -1, NULL, 0);
MultiByteToWideChar(GetACP(), 0, pStr, -1, szFile, size);
strTempIMGPath.ReleaseBuffer();
if (m_pImage != NULL)
{
	delete m_pImage;
	m_pImage = NULL;
}
m_pImage = new Image(szFile, FALSE);
 

void CPNGButton::OnPaint()
{
	CPaintDC dc(this);
	Graphics graphics(dc.m_hDC);
	if(m_pImage != NULL && (m_pImage->GetLastStatus() == Gdiplus::Status::Ok))
	{
		graphics.DrawImage(m_pImage, 0, 0, m_pImage->GetWidth(), m_pImage->GetHeight());
	}
}
 


GeneralRe: How to load a png image in PictureControl? PingroupVCProgrammer30-Jan-13 22:19 
GeneralRe: How to load a png image in PictureControl? Pingroupyu-jian1-Feb-13 4:04 
GeneralRe: How to load a png image in PictureControl? PingroupVCProgrammer4-Feb-13 1:24 
QuestionIn win7 ,how to modify registry with Non - administrator permission Pinmemberhaha_c28-Jan-13 21:08 
AnswerRe: In win7 ,how to modify registry with Non - administrator permission PinmemberJochen Arndt28-Jan-13 21:38 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pinmemberhaha_c28-Jan-13 22:02 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission PinmemberJochen Arndt28-Jan-13 22:57 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pinmemberhaha_c28-Jan-13 23:18 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission PinmemberJochen Arndt28-Jan-13 23:33 
QuestionGet CBitmap from CDib PinmemberFlaviu228-Jan-13 20:30 
AnswerRe: Get CBitmap from CDib PinmemberJochen Arndt28-Jan-13 21:31 
QuestionAbout virtual function PingroupEhtishamArshad28-Jan-13 19:40 
AnswerRe: About virtual function Pinmemberjibesh28-Jan-13 19:51 
GeneralRe: About virtual function PingroupEhtishamArshad28-Jan-13 22:32 
AnswerRe: About virtual function PinmvpRichard MacCutchan28-Jan-13 22:48 
Questionwhere can download comment macro? Pingroupyu-jian28-Jan-13 15:36 
AnswerRe: where can download comment macro? Pinmemberjibesh28-Jan-13 19:48 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 24 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid