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

C / C++ / MFC

 
GeneralRe: my cancel button is not working Pin
Debs29-Jan-03 2:36
Debs29-Jan-03 2:36 
GeneralRe: my cancel button is not working Pin
Mr Bose Dayala29-Jan-03 2:40
Mr Bose Dayala29-Jan-03 2:40 
GeneralRe: my cancel button is not working Pin
Debs29-Jan-03 22:56
Debs29-Jan-03 22:56 
GeneralRe: my cancel button is not working Pin
Mr Bose Dayala29-Jan-03 23:05
Mr Bose Dayala29-Jan-03 23:05 
GeneralRe: my cancel button is not working Pin
Debs30-Jan-03 1:02
Debs30-Jan-03 1:02 
GeneralRe: my cancel button is not working Pin
Mr Bose Dayala30-Jan-03 1:23
Mr Bose Dayala30-Jan-03 1:23 
GeneralStrange that CFont::GetLogFont not const Pin
Moak28-Jan-03 23:14
Moak28-Jan-03 23:14 
GeneralRe: Strange that CFont::GetLogFont not const Pin
Member 568844324-Jan-13 6:21
Member 568844324-Jan-13 6:21 
Just look what I do. The important line can work on a const method! I am following Scott Meyers recommendations!

C++
CSomeClass& CSomeClass::operator=(const CSomeClass& source)
{
	m_name=source.m_name;

	LOGFONT lf;
	(const_cast<CFont&>(static_cast<const CFont&> (source.m_font)).GetLogFont(&lf)); //this is the important line
	m_font.Detach();
	m_font.CreateFontIndirect(&lf);

	//...

	return *this;
}

GeneralSuperscipt in sourcecode/dialog caption Pin
John Oliver28-Jan-03 22:49
John Oliver28-Jan-03 22:49 
GeneralRe: Superscipt in sourcecode/dialog caption Pin
Joaquín M López Muñoz29-Jan-03 0:22
Joaquín M López Muñoz29-Jan-03 0:22 
GeneralRe: Superscipt in sourcecode/dialog caption Pin
John Oliver29-Jan-03 1:16
John Oliver29-Jan-03 1:16 
GeneralRe: Superscipt in sourcecode/dialog caption Pin
Joel Lucsy29-Jan-03 2:44
Joel Lucsy29-Jan-03 2:44 
GeneralRe: Superscipt in sourcecode/dialog caption Pin
John Oliver29-Jan-03 2:54
John Oliver29-Jan-03 2:54 
GeneralRe: Superscipt in sourcecode/dialog caption Pin
Joel Lucsy29-Jan-03 3:01
Joel Lucsy29-Jan-03 3:01 
GeneralRe: Superscipt in sourcecode/dialog caption Pin
Roger Allen29-Jan-03 0:55
Roger Allen29-Jan-03 0:55 
GeneralRe: Superscipt in sourcecode/dialog caption Pin
John Oliver29-Jan-03 1:17
John Oliver29-Jan-03 1:17 
GeneralMDI & Html Pin
jeremysay28-Jan-03 22:24
jeremysay28-Jan-03 22:24 
GeneralRe: MDI & Html Pin
HENDRIK R28-Jan-03 22:28
HENDRIK R28-Jan-03 22:28 
GeneralRe: MDI & Html Pin
jeremysay28-Jan-03 22:46
jeremysay28-Jan-03 22:46 
GeneralContrilling Smart App's from internal Web pages Pin
Peter Tewkesbury28-Jan-03 21:53
professionalPeter Tewkesbury28-Jan-03 21:53 
GeneralRe: Contrilling Smart App's from internal Web pages Pin
HENDRIK R28-Jan-03 22:12
HENDRIK R28-Jan-03 22:12 
Generalcascaded and tiled dialogs in SDI MFC applications Pin
annona28-Jan-03 21:19
annona28-Jan-03 21:19 
GeneralIcon in the status bar - like Yahoo messenger... Pin
Florin Ochiana28-Jan-03 21:02
Florin Ochiana28-Jan-03 21:02 
GeneralRe: Icon in the status bar - like Yahoo messenger... Pin
Rickard Andersson2028-Jan-03 21:40
Rickard Andersson2028-Jan-03 21:40 
GeneralRe: Icon in the status bar - like Yahoo messenger... Pin
Rickard Andersson2028-Jan-03 21:43
Rickard Andersson2028-Jan-03 21:43 

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.