Notes:
Changes: <UL> <LI><p>The precompiled headers are now built into the Output folder, which makes it easier for me to package this up to put on the web site: I can just dump the Output and Data folders. </p><LI><p>I've added "using" declarations to the header for WTextView, so, if you inherit from it, you can say: </p><p>WTextView::Click(myMouseDown) and have the correct method be called. Richard Buckle pointed out the problem. </p><LI><p>The copy constructor now calls InsertText with arguments in the correct order. Olivier Destrebecq pointed out the problem. </p><LI><p>If a throw occurs during the constructor, the print panels array or the WEReference could leak. WTextView now handles these situations correctly. Florent Pillet pointed out the problem. </p><LI><p>// -- Begin Florent Pillet: </p><p> I moved InitTextView() to FinishCreateSelf(). The reason for that is that if you derive a class from WTextView (this is what I do), and override some virtual methods, any virtual method called from a method that is called during construction goes to the base class's method, not the derived class' (this is the standard). Also, I added missing initializers in all the constructors. I fixed a problem when clicking the text field and it was not the target, the cursor position was set to the beginning of the field instead of the point that was clicked. See my comments in the "ClickSelf" method. </p><p>// -- End Florent Pillet </p> </UL>
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use