/* WIN32Server - Implements window handling for MSWindows Copyright (C) 2005 Free Software Foundation, Inc. Written by: Tom MacSween Date August 2005 This file is part of the GNU Objective C User Interface Library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. */ #ifndef _W32_EVENTS_h_INCLUDE #define _W32_EVENTS_h_INCLUDE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "win32/WIN32Server.h" #include "win32/WIN32Geometry.h" #include "w32_config.h" @interface WIN32Server (w32_notifications) - (void) ApplicationDidFinishLaunching: (NSNotification*)aNotification; - (void) ApplicationWillFinishLaunching: (NSNotification*)aNotification; - (void) ApplicationWillHideNotification: (NSNotification*)aNotification; - (void) WindowWillMiniaturizeNotification:(NSNotification*)aNotification; - (void) MenuWillTearOff: (NSNotification*)aNotification; - (void) MenuwillPopUP: (NSNotification*)aNotification; - (void) WindowDidCreateWindow: (NSNotification*)aNotification; @end @interface WIN32Server (w32_activate) - (LRESULT) decodeWM_ACTIVEParams: (WPARAM)wParam :(LPARAM)lParam : (HWND)hwnd; - (LRESULT) decodeWM_ACTIVEAPPParams: (HWND)hwnd :(WPARAM)wParam : (LPARAM)lParam; - (void) decodeWM_NCACTIVATEParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; @end @interface WIN32Server (w32_movesize) - (LRESULT) decodeWM_SIZEParams: (HWND)hwnd : (WPARAM)wParam : (LPARAM)lParam; - (LRESULT) decodeWM_MOVEParams: (HWND)hwnd : (WPARAM)wParam : (LPARAM)lParam; - (void) decodeWM_NCCALCSIZEParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_WINDOWPOSCHANGINGParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_WINDOWPOSCHANGEDParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (LRESULT) decodeWM_GETMINMAXINFOParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (LRESULT) decodeWM_EXITSIZEMOVEParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_SIZINGParams: (HWND)hwnd : (WPARAM)wParam : (LPARAM)lParam; - (LRESULT) decodeWM_MOVINGParams: (HWND)hwnd : (WPARAM)wParam : (LPARAM)lParam; @end @interface WIN32Server (w32_create) - (LRESULT) decodeWM_NCCREATEParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (LRESULT) decodeWM_CREATEParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; @end @interface WIN32Server (w32_windowdisplay) - (DWORD) windowStyleForGSStyle: (unsigned int) style; - (void) decodeWM_SHOWWINDOWParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_NCPAINTParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (LRESULT) decodeWM_ERASEBKGNDParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_PAINTParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_SYNCPAINTParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_CAPTURECHANGEDParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (HICON) decodeWM_GETICONParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (HICON) decodeWM_SETICONParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) resizeBackingStoreFor: (HWND)hwnd; @end @interface WIN32Server (w32_text_focus) //- (LRESULT) decodeWM_SETTEXTParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (LRESULT) decodeWM_SETFOCUSParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_KILLFOCUSParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_GETTEXTParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; @end //small but useful events @interface WIN32Server (w32_General) - (void) decodeWM_CLOSEParams: (WPARAM)wParam :(LPARAM)lParam :(HWND)hwnd; - (void) decodeWM_DESTROYParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_NCDESTROYParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_QUERYOPENParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_SYSCOMMANDParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) decodeWM_COMMANDParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; - (void) resetForGSWindowStyle: (HWND)hwnd w32Style:(DWORD)aStyle; //- (LRESULT) decodeWM_LBUTTONDOWNParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd; @end @interface WIN32Server (w32_debug) - (BOOL) displayEvent: (unsigned int)uMsg; // diagnotic filter - (void) test_Geomemetry: (HWND)hwnd; - (void) print_result: (RECT)msrect and: (NSRect)gsrect and: (RECT)control; - (NSMutableString *) w32_createDetails: (LPCREATESTRUCT)details; - (NSMutableString *) createWindowDetail: (NSArray *)anArray; - (NSMutableString *) WindowDetail: (NSWindow *) theWindow; - (NSMutableString *) MSRectDetails: (RECT)aRect; - (NSMutableString *) NSRectDetails: (NSRect)aRect; - (NSMutableString *) gswindowstate: (NSWindow *)theWindow; - (NSMutableString *) MINMAXDetails: (MINMAXINFO *) mm; - (NSMutableString *) subViewDetails: (NSWindow *)theWindow; - (void) handleNotification: (NSNotification*)aNotification; @end // debug hooks into the GSDisplayServer class @interface GSDisplayServer (GSDisplayServer_details) - (int) eventQueCount; - (NSMutableString *) dumpQue:(int)acount; - (void) clearEventQue; @end #endif //_W32_EVENTS_h_INCLUDE