PCSX2 Documentation/WxWidgets Coding Strategies: Difference between revisions

 
Line 88: Line 88:
</source>
</source>


... So the moral of the story is: Use <code>GetEventHandler()</code> when possible (basically anything except the wxApp object), and use <code lang="cpp">AddPendingEvent()</code> unless you need a return code ''and'' know you're on the main GUI thread.
... So the moral of the story is: Use <code>GetEventHandler()</code> when possible (basically anything except the <code>wxApp</code> object), and use <code lang="cpp">AddPendingEvent()</code> unless you need a return code ''and'' know you're on the main GUI thread.


==Guidelines when Using Windows/Linux Specific Code==
==Guidelines when Using Windows/Linux Specific Code==
ninja
782

edits