Click here to Skip to main content
15,890,995 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Crash Window on Close Pin
ThatsAlok22-Jul-10 0:35
ThatsAlok22-Jul-10 0:35 
QuestionMemory Leak Pin
Fareed Rizkalla21-Jul-10 13:36
Fareed Rizkalla21-Jul-10 13:36 
JokeRe: Memory Leak Pin
Maximilien21-Jul-10 13:54
Maximilien21-Jul-10 13:54 
GeneralRe: Memory Leak Pin
Fareed Rizkalla21-Jul-10 14:08
Fareed Rizkalla21-Jul-10 14:08 
AnswerRe: Memory Leak Pin
Aescleal21-Jul-10 22:14
Aescleal21-Jul-10 22:14 
GeneralRe: Memory Leak Pin
David Crow22-Jul-10 3:03
David Crow22-Jul-10 3:03 
QuestionCTabCtrl color background Problem [modified] Pin
etipaq21-Jul-10 5:50
etipaq21-Jul-10 5:50 
AnswerRe: CTabCtrl color background Problem Pin
Niklas L21-Jul-10 10:12
Niklas L21-Jul-10 10:12 
I gave the class an English sounding name, et voilà
BOOL CMyTabCtrl::OnEraseBkgnd(CDC* pDC)
{
	//(HDC)wParam3
	RECT rect;
	this->GetWindowRect(&rect);

	//----------------
	ScreenToClient(&rect); // (And added this)
	//----------------

	::FillRect(pDC->GetSafeHdc(), &rect, static_cast<HBRUSH>(((CDlg_Modele*)m_TabOnglet[0]->ptrEcran)->m_DlgBGColor));

	return FALSE; // don't do the default erase
}


I strongly suggest that you give identifiers English names, unless a customer demands another language in a contract. And even then, try to convince him before accepting.

A simple thing as asking for help might reduce your chances of getting a good response. But there are better reasons, working with developers from different countries being one. Going public with parts of your code being another. I once had an interface file for a complex system completely in Dutch in my hands. Oh my oh my...

JokeRe: CTabCtrl color background Problem Pin
Code-o-mat21-Jul-10 10:34
Code-o-mat21-Jul-10 10:34 
GeneralRe: CTabCtrl color background Problem Pin
Niklas L21-Jul-10 10:54
Niklas L21-Jul-10 10:54 
GeneralRe: CTabCtrl color background Problem Pin
etipaq21-Jul-10 15:59
etipaq21-Jul-10 15:59 
QuestionCharacter Exception Pin
Pryabu21-Jul-10 3:54
Pryabu21-Jul-10 3:54 
AnswerRe: Character Exception PinPopular
Aescleal21-Jul-10 4:15
Aescleal21-Jul-10 4:15 
AnswerRe: Character Exception Pin
Sauro Viti21-Jul-10 4:35
professionalSauro Viti21-Jul-10 4:35 
GeneralRe: Character Exception Pin
Aescleal21-Jul-10 4:55
Aescleal21-Jul-10 4:55 
GeneralRe: Character Exception Pin
Richard MacCutchan21-Jul-10 5:19
mveRichard MacCutchan21-Jul-10 5:19 
AnswerRe: Character Exception Pin
Chris Losinger21-Jul-10 4:36
professionalChris Losinger21-Jul-10 4:36 
AnswerRe: Character Exception Pin
Cool_Dev21-Jul-10 4:38
Cool_Dev21-Jul-10 4:38 
Question关于32/64位操作系统下,应用程序兼容性问题 Pin
xjh_sz20-Jul-10 23:38
xjh_sz20-Jul-10 23:38 
AnswerRe: 关于32/64位操作系统下,应用程序兼容性问题 PinPopular
Richard MacCutchan21-Jul-10 0:13
mveRichard MacCutchan21-Jul-10 0:13 
AnswerRe: 关于32/64位操作系统下,应用程序兼容性问题 Pin
Sauro Viti21-Jul-10 1:00
professionalSauro Viti21-Jul-10 1:00 
AnswerRe: 关于32/64位操作系统下,应用程序兼容性问题 Pin
Luc Pattyn21-Jul-10 14:41
sitebuilderLuc Pattyn21-Jul-10 14:41 
QuestionRe: About 32/64 bit operating system, application compatibility issues Pin
David Crow21-Jul-10 3:09
David Crow21-Jul-10 3:09 
JokeRe: About 32/64 bit operating system, application compatibility issues Pin
Yusuf21-Jul-10 7:08
Yusuf21-Jul-10 7:08 
AnswerRe: About 32/64 bit operating system, application compatibility issues Pin
David Crow21-Jul-10 7:41
David Crow21-Jul-10 7:41 

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.