<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sc2kfix.net/w/index.php?action=history&amp;feed=atom&amp;title=User%3AAraxestroy%2FClass_notes</id>
	<title>User:Araxestroy/Class notes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sc2kfix.net/w/index.php?action=history&amp;feed=atom&amp;title=User%3AAraxestroy%2FClass_notes"/>
	<link rel="alternate" type="text/html" href="https://wiki.sc2kfix.net/w/index.php?title=User:Araxestroy/Class_notes&amp;action=history"/>
	<updated>2026-04-07T18:05:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.sc2kfix.net/w/index.php?title=User:Araxestroy/Class_notes&amp;diff=752&amp;oldid=prev</id>
		<title>Araxestroy: Created page with &quot;=== &lt;code&gt;class CCmdUI&lt;/code&gt; ===  This is a base class in MFC used as a helper for UI update/draw callbacks when eg. menus are drawn. The following is from the MFC 2.1 include file &lt;code&gt;afxwin.h&lt;/code&gt;, with additional annotations added:  &lt;syntaxhighlight lang=&quot;c++&quot; line&gt; class CCmdUI        // simple helper class { public: // Attributes 	UINT m_nID; 	UINT m_nIndex;          // menu item or other index  	// if a menu item 	CMenu* m_pMenu;         // NULL if not a menu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.sc2kfix.net/w/index.php?title=User:Araxestroy/Class_notes&amp;diff=752&amp;oldid=prev"/>
		<updated>2025-03-24T17:21:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== &amp;lt;code&amp;gt;class CCmdUI&amp;lt;/code&amp;gt; ===  This is a base class in MFC used as a helper for UI update/draw callbacks when eg. menus are drawn. The following is from the MFC 2.1 include file &amp;lt;code&amp;gt;afxwin.h&amp;lt;/code&amp;gt;, with additional annotations added:  &amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot; line&amp;gt; class CCmdUI        // simple helper class { public: // Attributes 	UINT m_nID; 	UINT m_nIndex;          // menu item or other index  	// if a menu item 	CMenu* m_pMenu;         // NULL if not a menu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== &amp;lt;code&amp;gt;class CCmdUI&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
This is a base class in MFC used as a helper for UI update/draw callbacks when eg. menus are drawn. The following is from the MFC 2.1 include file &amp;lt;code&amp;gt;afxwin.h&amp;lt;/code&amp;gt;, with additional annotations added:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot; line&amp;gt;&lt;br /&gt;
class CCmdUI        // simple helper class&lt;br /&gt;
{&lt;br /&gt;
public:&lt;br /&gt;
// Attributes&lt;br /&gt;
	UINT m_nID;&lt;br /&gt;
	UINT m_nIndex;          // menu item or other index&lt;br /&gt;
&lt;br /&gt;
	// if a menu item&lt;br /&gt;
	CMenu* m_pMenu;         // NULL if not a menu&lt;br /&gt;
	CMenu* m_pSubMenu;      // sub containing menu item&lt;br /&gt;
							// if a popup sub menu - ID is for first in popup&lt;br /&gt;
&lt;br /&gt;
	// if from some other window&lt;br /&gt;
	CWnd* m_pOther;         // NULL if a menu or not a CWnd&lt;br /&gt;
&lt;br /&gt;
// Operations to do in ON_UPDATE_COMMAND_UI&lt;br /&gt;
	virtual void Enable(BOOL bOn = TRUE);    // [ecx+0]&lt;br /&gt;
	virtual void SetCheck(int nCheck = 1);   // [ecx+4] 0, 1 or 2 (indeterminate)&lt;br /&gt;
	virtual void SetRadio(BOOL bOn = TRUE);  // [ecx+8]&lt;br /&gt;
	virtual void SetText(LPCTSTR lpszText);  // [ecx+12]&lt;br /&gt;
&lt;br /&gt;
// Advanced operation&lt;br /&gt;
	void ContinueRouting();&lt;br /&gt;
&lt;br /&gt;
// Implementation&lt;br /&gt;
	CCmdUI();&lt;br /&gt;
	BOOL m_bEnableChanged;&lt;br /&gt;
	BOOL m_bContinueRouting;&lt;br /&gt;
	UINT m_nIndexMax;       // last + 1 for iterating m_nIndex&lt;br /&gt;
&lt;br /&gt;
	CMenu* m_pParentMenu;   // NULL if parent menu not easily determined&lt;br /&gt;
							//  (probably a secondary popup menu)&lt;br /&gt;
&lt;br /&gt;
	void DoUpdate(CCmdTarget* pTarget, BOOL bDisableIfNoHndler);&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;class CSimcityView&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
CView-derived class for the main game window.&lt;/div&gt;</summary>
		<author><name>Araxestroy</name></author>
	</entry>
</feed>