Click here to Skip to main content
15,891,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGDI leak in "Tree View" with TVS_CHECKBOXES property Pin
139135068422-Jun-10 21:57
139135068422-Jun-10 21:57 
AnswerRe: GDI leak in "Tree View" with TVS_CHECKBOXES property Pin
139135068423-Jun-10 0:24
139135068423-Jun-10 0:24 
QuestionCommandLine execution problem Pin
krishna_CP2-Jun-10 21:04
krishna_CP2-Jun-10 21:04 
AnswerRe: CommandLine execution problem Pin
Richard MacCutchan2-Jun-10 21:13
mveRichard MacCutchan2-Jun-10 21:13 
AnswerRe: CommandLine execution problem Pin
KarstenK2-Jun-10 21:32
mveKarstenK2-Jun-10 21:32 
GeneralRe: CommandLine execution problem DOS Error code 1073741819 Pin
krishna_CP2-Jun-10 22:39
krishna_CP2-Jun-10 22:39 
GeneralRe: CommandLine execution problem DOS Error code 1073741819 Pin
KarstenK2-Jun-10 22:49
mveKarstenK2-Jun-10 22:49 
QuestionLoading bitmap in Dialog in OnPaint() Pin
Anu_Bala2-Jun-10 18:00
Anu_Bala2-Jun-10 18:00 
Hi,
I have picture control in dailog.Im loading image in OnPaint() for that picture control.And i have If else condition,depends on i will change the bitmap.
But what happened is when i invoke Dialog,immediately i can see image like a blink.thatsall .then it goes.I dont know what happened.
And also apart from this problem.The dailog get flickering continously.I have edit control,combox in dialog.Im putting values in all controls in OnPaint().
BOOL CFacePlate::OnInitDialog() 
{
	CDialog::OnInitDialog();
        Bmp1.LoadBitmap(IDB_PVHIGH);
	Bmp2.LoadBitmap(IDB_PVLOW); 	
}


void CFacePlate::OnPaint() 
{
	CPaintDC dc(this); 
     m_fPV = oTagBase->GetPV();
     m_fSP = oTagBase->GetSV();
    if(pv>=oTagBase->GetAlarmHigh())
	{					
	m_Picture.SetBitmap(Bmp1);
	}
	else
	{			
	m_Picture.SetBitmap(Bmp2);
	}
}

Anu

AnswerRe: Loading bitmap in Dialog in OnPaint() Pin
Aescleal2-Jun-10 20:34
Aescleal2-Jun-10 20:34 
AnswerRe: Loading bitmap in Dialog in OnPaint() Pin
Niklas L2-Jun-10 21:03
Niklas L2-Jun-10 21:03 
AnswerRe: Loading bitmap in Dialog in OnPaint() Pin
KarstenK2-Jun-10 21:35
mveKarstenK2-Jun-10 21:35 
AnswerRe: Loading bitmap in Dialog in OnPaint() Pin
CPallini2-Jun-10 21:36
mveCPallini2-Jun-10 21:36 
Questionconverting visual c++ 6 to visual studio 2010 error message error C1083: Cannot open source file No such file or directory Pin
ywimmer2-Jun-10 15:46
ywimmer2-Jun-10 15:46 
AnswerRe: converting visual c++ 6 to visual studio 2010 error message error C1083: Cannot open source file No such file or directory Pin
Anthony Mushrow2-Jun-10 17:00
professionalAnthony Mushrow2-Jun-10 17:00 
GeneralRe: converting visual c++ 6 to visual studio 2010 error message error C1083: Cannot open source file No such file or directory Pin
ywimmer2-Jun-10 19:52
ywimmer2-Jun-10 19:52 
QuestionHow to get another process Debug Registers of content Pin
notediy2-Jun-10 11:13
notediy2-Jun-10 11:13 
AnswerRe: How to get another process Debug Registers of content Pin
Garth J Lancaster2-Jun-10 12:46
professionalGarth J Lancaster2-Jun-10 12:46 
AnswerRe: How to get another process Debug Registers of content Pin
Stephen Hewitt2-Jun-10 17:05
Stephen Hewitt2-Jun-10 17:05 
QuestionGDI: Create 8bit grayscale bitmap from raw pixel intensity data problem Pin
vkinra2-Jun-10 10:49
vkinra2-Jun-10 10:49 
AnswerRe: GDI: Create 8bit grayscale bitmap from raw pixel intensity data problem Pin
John R. Shaw2-Jun-10 11:34
John R. Shaw2-Jun-10 11:34 
GeneralRe: GDI: Create 8bit grayscale bitmap from raw pixel intensity data problem Pin
vkinra2-Jun-10 11:57
vkinra2-Jun-10 11:57 
GeneralRe: GDI: Create 8bit grayscale bitmap from raw pixel intensity data problem Pin
John R. Shaw2-Jun-10 13:29
John R. Shaw2-Jun-10 13:29 
QuestionShort Circuit Evaluation Pin
bob169722-Jun-10 6:47
bob169722-Jun-10 6:47 
AnswerRe: Short Circuit Evaluation PinPopular
Luc Pattyn2-Jun-10 7:39
sitebuilderLuc Pattyn2-Jun-10 7:39 
GeneralRe: Short Circuit Evaluation Pin
bob169722-Jun-10 9:57
bob169722-Jun-10 9:57 

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.