Click here to Skip to main content
13,143,610 members (32,603 online)

C / C++ / MFC

 
GeneralRe: Can a modeless dialog box be a main window Pin
Richard MacCutchan30-Jan-13 7:34
mvpRichard MacCutchan30-Jan-13 7:34 
GeneralRe: Can a modeless dialog box be a main window Pin
ForNow30-Jan-13 8:13
memberForNow30-Jan-13 8:13 
GeneralRe: Can a modeless dialog box be a main window Pin
Richard MacCutchan30-Jan-13 9:07
mvpRichard MacCutchan30-Jan-13 9:07 
AnswerRe: Can a modeless dialog box be a main window Pin
Erudite_Eric30-Jan-13 3:04
memberErudite_Eric30-Jan-13 3:04 
GeneralRe: Can a modeless dialog box be a main window Pin
ForNow30-Jan-13 7:31
memberForNow30-Jan-13 7:31 
QuestionHow to load a png image in PictureControl? Pin
VCProgrammer29-Jan-13 1:41
groupVCProgrammer29-Jan-13 1:41 
QuestionRe: How to load a png image in PictureControl? Pin
Richard MacCutchan29-Jan-13 3:33
mvpRichard MacCutchan29-Jan-13 3:33 
AnswerRe: How to load a png image in PictureControl? Pin
yu-jian29-Jan-13 15:40
groupyu-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? Pin
VCProgrammer30-Jan-13 22:19
groupVCProgrammer30-Jan-13 22:19 
GeneralRe: How to load a png image in PictureControl? Pin
yu-jian1-Feb-13 4:04
groupyu-jian1-Feb-13 4:04 
GeneralRe: How to load a png image in PictureControl? Pin
VCProgrammer4-Feb-13 1:24
groupVCProgrammer4-Feb-13 1:24 
QuestionIn win7 ,how to modify registry with Non - administrator permission Pin
haha_c28-Jan-13 21:08
memberhaha_c28-Jan-13 21:08 
AnswerRe: In win7 ,how to modify registry with Non - administrator permission Pin
Jochen Arndt28-Jan-13 21:38
memberJochen Arndt28-Jan-13 21:38 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
haha_c28-Jan-13 22:02
memberhaha_c28-Jan-13 22:02 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
Jochen Arndt28-Jan-13 22:57
memberJochen Arndt28-Jan-13 22:57 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
haha_c28-Jan-13 23:18
memberhaha_c28-Jan-13 23:18 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
Jochen Arndt28-Jan-13 23:33
memberJochen Arndt28-Jan-13 23:33 
QuestionGet CBitmap from CDib Pin
Flaviu228-Jan-13 20:30
memberFlaviu228-Jan-13 20:30 
AnswerRe: Get CBitmap from CDib Pin
Jochen Arndt28-Jan-13 21:31
memberJochen Arndt28-Jan-13 21:31 
QuestionAbout virtual function Pin
EhtishamArshad28-Jan-13 19:40
groupEhtishamArshad28-Jan-13 19:40 
AnswerRe: About virtual function Pin
jibesh28-Jan-13 19:51
memberjibesh28-Jan-13 19:51 
GeneralRe: About virtual function Pin
EhtishamArshad28-Jan-13 22:32
groupEhtishamArshad28-Jan-13 22:32 
AnswerRe: About virtual function Pin
Richard MacCutchan28-Jan-13 22:48
mvpRichard MacCutchan28-Jan-13 22:48 
QuestionWaveInOpen() returns error code 11 Pin
AmbiguousName26-Jan-13 3:14
memberAmbiguousName26-Jan-13 3:14 
AnswerRe: WaveInOpen() returns error code 11 Pin
Richard MacCutchan26-Jan-13 3:28
mvpRichard MacCutchan26-Jan-13 3:28 

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.


Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 21 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid