dragtrgt.cpp

Go to the documentation of this file.
00001 // $Id: dragtrgt.cpp 1328 2006-06-15 19:23:45Z alex $
00002 /* @@tag:xara-cn@@ DO NOT MODIFY THIS LINE
00003 ================================XARAHEADERSTART===========================
00004  
00005                Xara LX, a vector drawing and manipulation program.
00006                     Copyright (C) 1993-2006 Xara Group Ltd.
00007        Copyright on certain contributions may be held in joint with their
00008               respective authors. See AUTHORS file for details.
00009 
00010 LICENSE TO USE AND MODIFY SOFTWARE
00011 ----------------------------------
00012 
00013 This file is part of Xara LX.
00014 
00015 Xara LX is free software; you can redistribute it and/or modify it
00016 under the terms of the GNU General Public License version 2 as published
00017 by the Free Software Foundation.
00018 
00019 Xara LX and its component source files are distributed in the hope
00020 that it will be useful, but WITHOUT ANY WARRANTY; without even the
00021 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00022 See the GNU General Public License for more details.
00023 
00024 You should have received a copy of the GNU General Public License along
00025 with Xara LX (see the file GPL in the root directory of the
00026 distribution); if not, write to the Free Software Foundation, Inc., 51
00027 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00028 
00029 
00030 ADDITIONAL RIGHTS
00031 -----------------
00032 
00033 Conditional upon your continuing compliance with the GNU General Public
00034 License described above, Xara Group Ltd grants to you certain additional
00035 rights. 
00036 
00037 The additional rights are to use, modify, and distribute the software
00038 together with the wxWidgets library, the wxXtra library, and the "CDraw"
00039 library and any other such library that any version of Xara LX relased
00040 by Xara Group Ltd requires in order to compile and execute, including
00041 the static linking of that library to XaraLX. In the case of the
00042 "CDraw" library, you may satisfy obligation under the GNU General Public
00043 License to provide source code by providing a binary copy of the library
00044 concerned and a copy of the license accompanying it.
00045 
00046 Nothing in this section restricts any of the rights you have under
00047 the GNU General Public License.
00048 
00049 
00050 SCOPE OF LICENSE
00051 ----------------
00052 
00053 This license applies to this program (XaraLX) and its constituent source
00054 files only, and does not necessarily apply to other Xara products which may
00055 in part share the same code base, and are subject to their own licensing
00056 terms.
00057 
00058 This license does not apply to files in the wxXtra directory, which
00059 are built into a separate library, and are subject to the wxWindows
00060 license contained within that directory in the file "WXXTRA-LICENSE".
00061 
00062 This license does not apply to the binary libraries (if any) within
00063 the "libs" directory, which are subject to a separate license contained
00064 within that directory in the file "LIBS-LICENSE".
00065 
00066 
00067 ARRANGEMENTS FOR CONTRIBUTION OF MODIFICATIONS
00068 ----------------------------------------------
00069 
00070 Subject to the terms of the GNU Public License (see above), you are
00071 free to do whatever you like with your modifications. However, you may
00072 (at your option) wish contribute them to Xara's source tree. You can
00073 find details of how to do this at:
00074   http://www.xaraxtreme.org/developers/
00075 
00076 Prior to contributing your modifications, you will need to complete our
00077 contributor agreement. This can be found at:
00078   http://www.xaraxtreme.org/developers/contribute/
00079 
00080 Please note that Xara will not accept modifications which modify any of
00081 the text between the start and end of this header (marked
00082 XARAHEADERSTART and XARAHEADEREND).
00083 
00084 
00085 MARKS
00086 -----
00087 
00088 Xara, Xara LX, Xara X, Xara X/Xtreme, Xara Xtreme, the Xtreme and Xara
00089 designs are registered or unregistered trademarks, design-marks, and/or
00090 service marks of Xara Group Ltd. All rights in these marks are reserved.
00091 
00092 
00093       Xara Group Ltd, Gaddesden Place, Hemel Hempstead, HP2 6EX, UK.
00094                         http://www.xara.com/
00095 
00096 =================================XARAHEADEREND============================
00097  */
00098 
00099 // dragtrgt.cpp - Implementations of global dragging system DragTarget classes
00100 
00101 /*
00102 */
00103 
00104 
00105 #include "camtypes.h"
00106 
00107 #include "dragmgr.h"
00108 //#include "resource.h"
00109 //#include "mario.h"
00110 
00111 CC_IMPLEMENT_DYNAMIC(DragTarget, ListItem)
00112 CC_IMPLEMENT_DYNAMIC(KernelDragTarget, DragTarget)
00113 CC_IMPLEMENT_DYNAMIC(OilDragTarget, DragTarget)
00114 
00115 
00116 #define new CAM_DEBUG_NEW
00117 
00118 
00119 
00120 
00121 /********************************************************************************************
00122 
00123 >   DragTarget::DragTarget()
00124 
00125     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00126     Created:    3/1/95
00127 
00128     Purpose: To ERROR3 if you are dumb enough to call the default constructor
00129 
00130     Documentation:  Docs\Specs\DragMan.doc
00131 
00132 ********************************************************************************************/
00133 
00134 
00135 DragTarget::DragTarget()
00136 {
00137     IWantAllEvents = FALSE;     // By default, targets only want events while the pointer
00138                                 // is over their target area
00139 }
00140 
00141 
00142 
00143 /********************************************************************************************
00144 
00145 >   DragTarget::~DragTarget()
00146 
00147     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00148     Created:    3/1/95
00149 
00150     Purpose:    Destructor
00151                 Ensures that this drag target is no longer registered with any drag manager.
00152                 i.e. if you want to remove a target during a drag, just destruct it.
00153 
00154     Documentation:  Docs\Specs\DragMan.doc
00155 
00156 ********************************************************************************************/
00157 
00158 DragTarget::~DragTarget()
00159 {
00160     // Just ensure that this target is not still registered with the manager
00161     DragManagerOp *Mgr = DragManagerOp::GetCurrentManager();
00162     if (Mgr != NULL)
00163         Mgr->DeregisterTarget(this);
00164 }
00165 
00166 
00167 
00168 /********************************************************************************************
00169 
00170 >   virtual BOOL DragTarget::IsAKernelObject(void)
00171 
00172     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00173     Created:    3/1/95
00174 
00175     Returns:    TRUE (This is a kernel object, not a winoil one)
00176 
00177     Purpose:    Virtual method to determine if a given DragTarget is of the Kernel or
00178                 Winoil 'gender'. 
00179                 
00180     Notes:      Don't override this! Derive from KernelDragTarget or OilDragTarget
00181 
00182                 This method gives an ERROR3 - you should not derive from/use DragTarget!
00183 
00184     Documentation:  Docs\Specs\DragMan.doc
00185 
00186 ********************************************************************************************/
00187 
00188 BOOL DragTarget::IsAKernelObject(void)
00189 {
00190     ERROR3("Somebody is using 'abstract' base class DragTarget!!!");
00191     return(TRUE);
00192 }
00193 
00194 
00195 
00196 /********************************************************************************************
00197 
00198 >   BOOL DragTarget::ProcessEvent(DragEventType Event, DragInformation *pDragInfo,
00199                                         CPoint *pMousePos, KeyPress* pKeyPress)
00200 
00201     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00202     Created:    9/1/95
00203 
00204     Inputs:     Event - Specifies what type of event has occurred
00205                 pDragInfo - Specifies a descriptor describing the currently active drag
00206                 pMousePos - Specifies the last known mouse coordinates, in terms
00207                 of client area coordinates within the drag target window (or screen
00208                 coordinates if no window was specified on registering)
00209                 pKeyPress - NULL, or a pointer to the key pressed (for KEYPRESS events)
00210 
00211     Purpose:    Winoil-style ProcessEvent interface
00212                 The OilDragTarget overrides this method to handle winoil events. Non-
00213                 winoil targets do not override this method, and thus give errors if called
00214                 incorrectly.
00215 
00216     SeeAlso:    keyword DragEventType
00217 
00218     Documentation:  Docs\Specs\DragMan.doc
00219 
00220 ********************************************************************************************/
00221 
00222 BOOL DragTarget::ProcessEvent(DragEventType Event, DragInformation *pDragInfo,
00223                                     wxPoint *pMousePos, KeyPress* pKeyPress)
00224 {
00225     ERROR3("Illegal call to DragTarget::ProcessEvent - I'm not a WINOIL Target!");
00226     return(FALSE);      // We do not claim the event
00227 }
00228 
00229 
00230 
00231 /********************************************************************************************
00232 
00233 >   BOOL DragTarget::ProcessEvent(DragEventType Event, DragInformation *pDragInfo,
00234                                         OilCoord *pMousePos, KeyPress* pKeyPress)
00235 
00236     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00237     Created:    9/1/95
00238 
00239     Inputs:     Event - Specifies what type of event has occurred
00240                 pDragInfo - Specifies a descriptor describing the currently active drag
00241                 pMousePos - Specifies the last known mouse coordinates, in terms
00242                 of OilCoords (Millipoint offsets within the drag target window/gadget)
00243                 pKeyPress - NULL, or a pointer to the key pressed (for KEYPRESS events)
00244 
00245     Purpose:    Kernel-style ProcessEvent interface
00246                 The KernelDragTarget overrides this method to handle kernel events. Non-
00247                 kernel targets do not override this method, and thus give errors if called
00248                 incorrectly.
00249 
00250     SeeAlso:    keyword DragEventType
00251 
00252     Documentation:  Docs\Specs\DragMan.doc
00253 
00254 ********************************************************************************************/
00255 
00256 BOOL DragTarget::ProcessEvent(DragEventType Event, DragInformation *pDragInfo,
00257                     OilCoord *pMousePos, KeyPress* pKeyPress)
00258 {
00259     ERROR3("Illegal call to DragTarget::ProcessEvent - I'm not a KERNEL Target!");
00260     return(FALSE);      // We do not claim the event
00261 }
00262 
00263 
00264 
00265 /********************************************************************************************
00266 
00267 >   void DragTarget::GetTargetAreaInfo(HWND *ReturnedHWnd, CRect *ReturnedTargetRect)
00268 
00269     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00270     Created:    10/1/95
00271 
00272     Outputs:    ReturnedHWnd - Filled in with the window
00273                 ReturnedTargetRect - Filled in with the target area rectangle in that window
00274 
00275     Purpose:    Winoil method for determining target-area information
00276 
00277     Notes:      Generates an ERROR3 - must not be called (This method is overridden by
00278                 OilDragTargets to supply the requested information)
00279 
00280     Documentation:  Docs\Specs\DragMan.doc
00281 
00282 ********************************************************************************************/
00283 
00284 void DragTarget::GetTargetAreaInfo(wxWindow **ReturnedHWnd, wxRect *ReturnedTargetRect)
00285 {
00286     *ReturnedHWnd = NULL;
00287     *ReturnedTargetRect = wxRect(0,0,0,0);
00288     ERROR3("DragTarget::GetTargetAreaInfo (WINOIL) -"
00289             " this is an illegal call on a KERNEL target!");
00290 }
00291 
00292 
00293 
00294 /********************************************************************************************
00295 
00296 >   void DragTarget::GetTargetAreaInfo(DialogOp **ReturnedDialog, CGadgetID *ReturnedGadget)
00297 
00298     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00299     Created:    10/1/95
00300 
00301     Outputs:    ReturnedDialog - Filled in with a pointer to the dialogop of the target area
00302                 ReturnedGadget - Filled in with the gadget containing the target area
00303 
00304     Purpose:    Winoil method for determining target-area information
00305 
00306     Notes:      Generates an ERROR3 - must not be called (This method is overridden by
00307                 KernelDragTargets to supply the requested information)
00308 
00309     Documentation:  Docs\Specs\DragMan.doc
00310 
00311 ********************************************************************************************/
00312 
00313 void DragTarget::GetTargetAreaInfo(DialogOp **ReturnedDialog, CGadgetID *ReturnedGadget)
00314 {
00315     *ReturnedDialog = NULL;
00316     *ReturnedGadget = 0;
00317     ERROR3("DragTarget::GetTargetAreaInfo (KERNEL) -"
00318             " this is an illegal call on a WINOIL target!");
00319 }
00320 
00321 
00322 /********************************************************************************************
00323 
00324 >   void DragTarget::GetCursorID()
00325 
00326     Author:     Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
00327     Created:    10/1/95
00328     Purpose:    Base Method to set cursor over this target
00329 
00330 
00331 ********************************************************************************************/
00332 
00333 UINT32 DragTarget::GetCursorID()
00334 {
00335      return _R(IDC_CANDROP);
00336 }
00337 
00338 
00339 
00340 /********************************************************************************************
00341 
00342 >   virtual BOOL DragTarget::GetStatusLineText(String_256 * TheText)
00343 
00344     Author:     Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
00345     Created:    15/1/95
00346     Returns:    a cursor ID to set during this drag
00347     Purpose:    -
00348    
00349 ********************************************************************************************/
00350 
00351 BOOL DragTarget::GetStatusLineText(String_256 * TheText)
00352 {
00353     ERROR2IF(TheText==NULL,FALSE,"NULL string in GetStatusLineText()");
00354     * TheText = String_256(_R(IDS_DROPSTATUSLINETEXT));
00355     return TRUE;
00356 }
00357 
00358 
00359 
00360 
00361 
00362 /********************************************************************************************
00363 
00364 >   KernelDragTarget::KernelDragTarget(DialogOp *TheDialog, CGadgetID TheGadget)
00365 
00366     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00367     Created:    3/1/95
00368 
00369     Inputs:     TheDialog - NULL (see Notes), or the kernel DialogOp providing the drag target
00370                 TheGadget - NULL (see Notes), or the ID of the gadget within that dialogue
00371                             which is the drag target area.
00372 
00373     Purpose:    Constructs a KernelDragTarget, AND REGISTERS it with the current DragManagerOp
00374                 This is used as a drag target for entities existing in the kernel (usually
00375                 DialogOps).
00376 
00377     Notes:      If both parameters are NULL, then this DragTarget is not associated with
00378                 any particular area of the screen, and will recieve all drag events (that
00379                 are not claimed by another such global event processor). It is not
00380                 expected that kernel drag processors will be used in this way
00381 
00382                 If TheGadget is NULL, then the entire dialogue client area will be considered
00383                 the target area. Otherwise, only that gadget is used as the target.
00384 
00385     SeeAlso:    OilDragTarget::OilDragTarget; DragManagerOp
00386 
00387     Errors:     In debug builds, an ERROR3 will occur if there is no active drag
00388                 manager (no drag occurring), and the DragTarget will probably appear
00389                 as a memory leak (as the Drag manager is normally responsible for deleting
00390                 the drag targets registered with it)
00391 
00392     Documentation:  Docs\Specs\DragMan.doc
00393 
00394 ********************************************************************************************/
00395 
00396 KernelDragTarget::KernelDragTarget(DialogOp *TheDialog, CGadgetID TheGadget)
00397 {
00398     TargetDialog = TheDialog;
00399     TargetGadget = TheGadget;
00400 
00401 //  PORTNOTE("other", "Removed DragManagerOp usage")
00402 //#ifndef EXCLUDE_FROM_XARALX
00403     // Register this drag target automatically with the system
00404     DragManagerOp *DragMan = DragManagerOp::GetCurrentManager();
00405     if (DragMan != NULL)
00406         DragMan->RegisterTarget(this, (TheDialog == NULL));
00407 #ifdef _DEBUG
00408     else
00409         ERROR3("There is no active drag (when attempting to create a DragTarget)");
00410 #endif
00411 //#endif
00412 }
00413 
00414 
00415 
00416 /********************************************************************************************
00417 
00418 >   virtual BOOL KernelDragTarget::IsAKernelObject(void)
00419 
00420     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00421     Created:    3/1/95
00422 
00423     Returns:    TRUE (This is a kernel object, not a winoil one)
00424 
00425     Purpose:    Virtual method to determine if a given DragTarget is of the Kernel or
00426                 Winoil 'gender'.
00427                 
00428     Notes:      Don't override this! Derive from KernelDragTarget or OilDragTarget
00429 
00430     Documentation:  Docs\Specs\DragMan.doc
00431 
00432 ********************************************************************************************/
00433 
00434 BOOL KernelDragTarget::IsAKernelObject(void)
00435 {
00436     return(TRUE);
00437 }
00438 
00439 
00440 
00441 /********************************************************************************************
00442 
00443 >   BOOL KernelDragTarget::ProcessEvent(DragEventType Event, DragInformation *pDragInfo,
00444                                         OilCoord *pMousePos, KeyPress* pKeyPress)
00445 
00446     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00447     Created:    9/1/95
00448 
00449     Inputs:     Event - Specifies what type of event has occurred
00450                 pDragInfo - Specifies a descriptor describing the currently active drag
00451                 pMousePos - Specifies the last known mouse coordinates, in terms
00452                 of OilCoords (Millipoint offsets within the drag target window/gadget)
00453                 pKeyPress - NULL, or a pointer to the key pressed (for KEYPRESS events)
00454 
00455     Purpose:    To process a drag-specific event. By default this method does nothing,
00456                 just returning FALSE so that the event is left unclaimed, and is thus
00457                 passed on to other interested drag targets.
00458 
00459     Notes:      Each derived DragTarget class should override this method to handle
00460                 events in a manner appropriate for the target.
00461 
00462                 BE VERY CAREFUL to only override the kernel parts of this interface!
00463 
00464     SeeAlso:    keyword DragEventType
00465 
00466     Documentation:  Docs\Specs\DragMan.doc
00467 
00468 ********************************************************************************************/
00469 
00470 BOOL KernelDragTarget::ProcessEvent(DragEventType Event, DragInformation *pDragInfo,
00471                                     OilCoord *pMousePos, KeyPress* pKeyPress)
00472 {
00473     return(FALSE);      // We do not claim the event
00474 }
00475 
00476 
00477 
00478 /********************************************************************************************
00479 
00480 >   void KernelDragTarget::GetTargetAreaInfo(DialogOp **ReturnedDialog,
00481                                                 CGadgetID *ReturnedGadget)
00482 
00483     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00484     Created:    10/1/95
00485 
00486     Outputs:    ReturnedDialog - Filled in with a pointer to the dialogop of the target area
00487                 ReturnedGadget - Filled in with the gadget containing the target area
00488 
00489     Purpose:    Kernel method for determining target-area information
00490 
00491     Documentation:  Docs\Specs\DragMan.doc
00492 
00493 ********************************************************************************************/
00494 
00495 void KernelDragTarget::GetTargetAreaInfo(DialogOp **ReturnedDialog, CGadgetID *ReturnedGadget)
00496 {
00497     *ReturnedDialog = TargetDialog;
00498     *ReturnedGadget = TargetGadget;
00499 }
00500 
00501 
00502 
00503 
00504 
00505 
00506 
00507 
00508 
00509 
00510 
00511 
00512 
00513 
00514 
00515 
00516 
00517 
00518 
00519 /********************************************************************************************
00520 
00521 >   OilDragTarget::OilDragTarget(HWND TheWindow, CRect *ClientArea)
00522 
00523     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00524     Created:    3/1/95
00525 
00526     Inputs:     TheWindow - the winoil hWnd of the window to be used as the drag target
00527                 area. This may be NULL (see Notes).
00528                 ClientArea - NULL (see Notes), or the window client-coordinates of a
00529                 rectangle within TheWindow of the target area.
00530 
00531     Purpose:    Constructs a OilDragTarget AND REGISTERS it with the current DragManagerOp
00532                 This is used as a drag target for entities existing in the winoil (usually
00533                 windows/controls).
00534 
00535     Notes:      If both parameters are NULL, then this DragTarget is not associated with
00536                 any particular area of the screen, and will recieve all drag events (that
00537                 are not claimed by another such global event processor).
00538 
00539                 If ClientArea is NULL, then the entire window client area will be considered
00540                 the target area. Otherwise, only that specified region within the window
00541                 client area is used as the target.
00542 
00543     Errors:     In debug builds, an ERROR3 will occur if there is no active drag
00544                 manager (no drag occurring), and the DragTarget will probably appear
00545                 as a memory leak (as the Drag manager is normally responsible for deleting
00546                 the drag targets registered with it)
00547 
00548     SeeAlso:    OilDragTarget::OilDragTarget; DragManagerOp
00549 
00550     Documentation:  Docs\Specs\DragMan.doc
00551 
00552 ********************************************************************************************/
00553 
00554 OilDragTarget::OilDragTarget(wxWindow * TheWindow, wxRect *ClientArea)
00555 {
00556     TargetHWnd = TheWindow;
00557 
00558     if (ClientArea == NULL)
00559     {
00560         // Get whole window rectangle in client coords
00561         //TargetClientArea = CRect(0, 0, 32000, 32000); // !!!! **** ToDo
00562         TargetClientArea = TheWindow->GetClientSize();
00563     }
00564     else
00565         TargetClientArea = *ClientArea;
00566 
00567 //  PORTNOTE("other", "Removed DragManagerOp usage")
00568 //#ifndef EXCLUDE_FROM_XARALX
00569     // Register this drag target automatically with the system
00570     DragManagerOp *DragMan = DragManagerOp::GetCurrentManager();
00571     if (DragMan != NULL)
00572         DragMan->RegisterTarget(this, (TheWindow == NULL));
00573 #ifdef _DEBUG
00574     else
00575         ERROR3("There is no active drag (when attempting to create a DragTarget)");
00576 #endif
00577 //#endif
00578 }
00579 
00580 
00581 
00582 /********************************************************************************************
00583 
00584 >   virtual BOOL OilDragTarget::IsAKernelObject(void)
00585 
00586     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00587     Created:    3/1/95
00588 
00589     Returns:    FALSE (This is a winoil object, not a kernel one)
00590 
00591     Purpose:    Virtual method to determine if a given DragTarget is of the Kernel or
00592                 Winoil 'gender'.
00593 
00594     Notes:      Don't override this! Derive from KernelDragTarget or OilDragTarget
00595 
00596     Documentation:  Docs\Specs\DragMan.doc
00597 
00598 ********************************************************************************************/
00599 
00600 BOOL OilDragTarget::IsAKernelObject(void)
00601 {
00602     return(FALSE);
00603 }
00604 
00605 
00606 
00607 /********************************************************************************************
00608 
00609 >   BOOL OilDragTarget::ProcessEvent(DragEventType Event, DragInformation *pDragInfo,
00610                                         CPoint *pMousePos, KeyPress* pKeyPress)
00611 
00612     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00613     Created:    9/1/95
00614 
00615     Inputs:     Event - Specifies what type of event has occurred
00616                 pDragInfo - Specifies a descriptor describing the currently active drag
00617                 pMousePos - Specifies the last known mouse coordinates, in terms
00618                 of client area coordinates within the drag target window (or screen
00619                 coordinates if no window was specified on registering)
00620                 pKeyPress - NULL, or a pointer to the key pressed (for KEYPRESS events)
00621 
00622     Purpose:    To process a drag-specific event. By default this method does nothing,
00623                 just returning FALSE so that the event is left unclaimed, and is thus
00624                 passed on to other interested drag targets.
00625 
00626     Notes:      Each derived DragTarget class should override this method to handle
00627                 events in a manner appropriate for the target.
00628 
00629                 BE VERY CAREFUL to only override the winoil parts of this interface!
00630 
00631     SeeAlso:    keyword DragEventType
00632 
00633     Documentation:  Docs\Specs\DragMan.doc
00634 
00635 ********************************************************************************************/
00636 
00637 BOOL OilDragTarget::ProcessEvent(DragEventType Event, DragInformation *pDragInfo,
00638                                     wxPoint *pMousePos, KeyPress* pKeyPress)
00639 {
00640     return(FALSE);      // We do not claim the event
00641 }
00642 
00643 
00644 
00645 /********************************************************************************************
00646 
00647 >   void OilDragTarget::GetTargetAreaInfo(HWND *ReturnedHWnd,
00648                                                 CRect *ReturnedTargetRect)
00649 
00650     Author:     Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
00651     Created:    10/1/95
00652 
00653     Outputs:    ReturnedHWnd - Filled in with the window
00654                 ReturnedTargetRect - Filled in with the target area rectangle in that window
00655 
00656     Purpose:    Winoil method for determining target-area information
00657 
00658     Documentation:  Docs\Specs\DragMan.doc
00659 
00660 ********************************************************************************************/
00661 
00662 void OilDragTarget::GetTargetAreaInfo(wxWindow **ReturnedHWnd, wxRect *ReturnedTargetRect)
00663 {
00664     *ReturnedHWnd = TargetHWnd;
00665     *ReturnedTargetRect = TargetClientArea;
00666 }
00667 
00668 

Generated on Sat Nov 10 03:48:25 2007 for Camelot by  doxygen 1.4.4