- WNDCLASS wndclass3; // Structure used to register Windows class.
- memset(&wndclass3, 0, sizeof(WNDCLASS)); // start with NULL defaults
- // Use CS_OWNDC to avoid messing about restoring the context
- // for every graphic operation.
- // wndclass3.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC | CS_DBLCLKS ;
- // wxWin 2.0
- wndclass3.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS ;
- wndclass3.lpfnWndProc = (WNDPROC)wxWndProc;
- wndclass3.cbClsExtra = 0;
- wndclass3.cbWndExtra = sizeof( DWORD ); // was 4
- wndclass3.hInstance = wxhInstance;
- wndclass3.hIcon = (HICON) NULL;
- wndclass3.hCursor = (HCURSOR) NULL;
- // wndclass3.hbrBackground = (HBRUSH)(COLOR_WINDOW+1) ;
- wndclass3.hbrBackground = (HBRUSH) NULL;
- wndclass3.lpszMenuName = NULL;
- wndclass3.lpszClassName = wxCanvasClassName;
- if (!RegisterClass( &wndclass3))
+ wndclass.hbrBackground = (HBRUSH)NULL;
+ wndclass.lpszClassName = wxCanvasClassName;
+
+ if ( !RegisterClass(&wndclass) )