Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 5680157

@User 5680157
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Job Specifications
    U User 5680157

    You know why. Because you are good at female body language but not good on written English body language.

    The Lounge question career

  • catching return key (VK_RETURN) with OnKeyDown
    U User 5680157

    Don't forget to add ON_WM_GETDLGCODE() to the message map of your class.

    C / C++ / MFC question

  • Strange that CFont::GetLogFont not const
    U User 5680157

    Just look what I do. The important line can work on a const method! I am following Scott Meyers recommendations!

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

    LOGFONT lf;
    (const\_cast(static\_cast (source.m\_font)).GetLogFont(&lf)); //this is the important line
    m\_font.Detach();
    m\_font.CreateFontIndirect(&lf);
    
    //...
    
    return \*this;
    

    }

    C / C++ / MFC com question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups