-
Recent Posts
Recent Comments
Mike T. on Code snippet Using WMI via… Drew Canitz on minimal ATL window eskici on file transfer over synchronous… Rose on Purify reported error entry po… duongnguyenvan on file transfer over synchronous… Archives
- August 2018
- March 2018
- May 2017
- July 2012
- May 2012
- April 2012
- March 2012
- January 2012
- October 2011
- September 2011
- July 2011
- June 2011
- May 2011
- April 2011
- October 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
Categories
Meta
Monthly Archives: August 2007
sort wxGrid by clicking column header
Here is a simple code snippet for sorting wxGrid on column header click event. I assume all values are string in order to demonstrate the concept for short. Enjoy it(www.fruitfruit.com).BEGIN_EVENT_TABLE(InvoicePage, wxPanel)EVT_GRID_LABEL_LEFT_CLICK(InvoicePage::OnGridEvent)END_EVENT_TABLE()void InvoicePage::OnGridEvent( wxGridEvent& event ){ typedef std::list<wxString> StringList; typedef boost::shared_ptr<StringList> … Continue reading
Posted in GUI
13 Comments
paint column header of wxGrid
When I want to draw sort indicator on column header of wxGrid, only wxPython example is found via google, but the sample is not the style I want. So the following code snippet is created. I also need to call … Continue reading
Posted in GUI
Leave a comment
War on naming convention
There are several widely used naming conventions and each has a lot of fans.naming convention:lower camel Java, Apache XercesCHungarian MFC, Microsoft Platform SDKunderscore boost, ACE, STL I personally favor to boost style, which only use lower case for class and … Continue reading
Posted in Software Engineering
Leave a comment
sddriver.exe
sddriver.exe seems to be a worm, it initialed a lot of connections (can be seen in TCPView.exe) and affected normal use of web browser. It is found in the following registry entries, but the file is not found in disk.HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunCall … Continue reading
Posted in Virus/Worm
Leave a comment
multiple inheritance cause problem in wxWidgets event handling
I have a class derived from wxPanel and also implementing a custom interface. At first I wrote it in the following way:class CopyPage :public IPage, public wxPanel{… DECLARE_EVENT_TABLE()}; BEGIN_EVENT_TABLE(CopyPage, wxPanel)EVT_BUTTON(wxID_ANY, CopyPage::OnButton)END_EVENT_TABLE() There are several buttons in CopyPage. A strange behavior … Continue reading
Posted in GUI
Leave a comment