title: What does 'afx_msg' do? - MFC
body: <p><strong>Disclaimer:</strong> I'm new to MFC and have basic knowledge of c++</p>
  
  <p><strong>My question:</strong> </p>
  
  <p>I ran into the following code that was auto generated by Visual studio: </p>
  
  <p><code>afx_msg void OnBnClickedOk();</code></p>
  
  <p>what does <code>afx_msg</code> do and are there other like that?</p>
  
  <hr>
  
  <p>As far as my knowledge goes, there are only a handful of access specifiers like : <code>public</code>, <code>private</code>, <code>protected</code>. There's also <code>virtual</code>.</p>
  
  <p>I found an answer <a href="http://forums.codeguru.com/showthread.php?68767-what-is-afx_msg-When-I-need-it" rel="noreferrer">here</a> but it is still not clear to me.</p>