]> git.saurik.com Git - wxWidgets.git/blob - src/stc/stc.cpp.in
copyright update
[wxWidgets.git] / src / stc / stc.cpp.in
1 ////////////////////////////////////////////////////////////////////////////
2 // Name: stc.cpp
3 // Purpose: A wxWindows implementation of Scintilla. This class is the
4 // one meant to be used directly by wx applications. It does not
5 // derive directly from the Scintilla classes, but instead
6 // delegates most things to the real Scintilla class.
7 // This allows the use of Scintilla without polluting the
8 // namespace with all the classes and identifiers from Scintilla.
9 //
10 // Author: Robin Dunn
11 //
12 // Created: 13-Jan-2000
13 // RCS-ID: $Id$
14 // Copyright: (c) 2000 by Total Control Software
15 // Licence: wxWindows license
16 /////////////////////////////////////////////////////////////////////////////
17
18 #include <ctype.h>
19
20 #include "wx/stc/stc.h"
21 #include "ScintillaWX.h"
22
23 #include <wx/tokenzr.h>
24
25 // The following code forces a reference to all of the Scintilla lexers.
26 // If we don't do something like this, then the linker tends to "optimize"
27 // them away. (eric@sourcegear.com)
28
29 int wxForceScintillaLexers(void)
30 {
31 extern LexerModule lmAda;
32 extern LexerModule lmAVE;
33 extern LexerModule lmConf;
34 extern LexerModule lmCPP;
35 extern LexerModule lmNncrontab;
36 extern LexerModule lmEiffel;
37 extern LexerModule lmHTML;
38 extern LexerModule lmLISP;
39 extern LexerModule lmLua;
40 extern LexerModule lmBatch; // In LexOthers.cxx
41 extern LexerModule lmPascal;
42 extern LexerModule lmPerl;
43 extern LexerModule lmPython;
44 extern LexerModule lmRuby;
45 extern LexerModule lmSQL;
46 extern LexerModule lmVB;
47
48 if ( &lmAda
49 && &lmAVE
50 && &lmConf
51 && &lmCPP
52 && &lmNncrontab
53 && &lmEiffel
54 && &lmHTML
55 && &lmLISP
56 && &lmLua
57 && &lmBatch
58 && &lmPascal
59 && &lmPerl
60 && &lmPython
61 && &lmRuby
62 && &lmSQL
63 && &lmVB )
64 {
65 return 1;
66 }
67 else
68 {
69 return 0;
70 }
71 }
72
73 //----------------------------------------------------------------------
74
75 const wxChar* wxSTCNameStr = "stcwindow";
76
77 DEFINE_EVENT_TYPE( wxEVT_STC_CHANGE )
78 DEFINE_EVENT_TYPE( wxEVT_STC_STYLENEEDED )
79 DEFINE_EVENT_TYPE( wxEVT_STC_CHARADDED )
80 DEFINE_EVENT_TYPE( wxEVT_STC_SAVEPOINTREACHED )
81 DEFINE_EVENT_TYPE( wxEVT_STC_SAVEPOINTLEFT )
82 DEFINE_EVENT_TYPE( wxEVT_STC_ROMODIFYATTEMPT )
83 DEFINE_EVENT_TYPE( wxEVT_STC_KEY )
84 DEFINE_EVENT_TYPE( wxEVT_STC_DOUBLECLICK )
85 DEFINE_EVENT_TYPE( wxEVT_STC_UPDATEUI )
86 DEFINE_EVENT_TYPE( wxEVT_STC_MODIFIED )
87 DEFINE_EVENT_TYPE( wxEVT_STC_MACRORECORD )
88 DEFINE_EVENT_TYPE( wxEVT_STC_MARGINCLICK )
89 DEFINE_EVENT_TYPE( wxEVT_STC_NEEDSHOWN )
90 DEFINE_EVENT_TYPE( wxEVT_STC_POSCHANGED )
91 DEFINE_EVENT_TYPE( wxEVT_STC_PAINTED )
92 DEFINE_EVENT_TYPE( wxEVT_STC_USERLISTSELECTION )
93 DEFINE_EVENT_TYPE( wxEVT_STC_URIDROPPED )
94 DEFINE_EVENT_TYPE( wxEVT_STC_DWELLSTART )
95 DEFINE_EVENT_TYPE( wxEVT_STC_DWELLEND )
96 DEFINE_EVENT_TYPE( wxEVT_STC_START_DRAG )
97 DEFINE_EVENT_TYPE( wxEVT_STC_DRAG_OVER )
98 DEFINE_EVENT_TYPE( wxEVT_STC_DO_DROP )
99
100
101 BEGIN_EVENT_TABLE(wxStyledTextCtrl, wxControl)
102 EVT_PAINT (wxStyledTextCtrl::OnPaint)
103 EVT_SCROLLWIN (wxStyledTextCtrl::OnScrollWin)
104 EVT_SCROLL (wxStyledTextCtrl::OnScroll)
105 EVT_SIZE (wxStyledTextCtrl::OnSize)
106 EVT_LEFT_DOWN (wxStyledTextCtrl::OnMouseLeftDown)
107 #ifdef __WXMSW__
108 // Let Scintilla see the double click as a second click
109 EVT_LEFT_DCLICK (wxStyledTextCtrl::OnMouseLeftDown)
110 #endif
111 EVT_MOTION (wxStyledTextCtrl::OnMouseMove)
112 EVT_LEFT_UP (wxStyledTextCtrl::OnMouseLeftUp)
113 #ifdef __WXGTK__
114 EVT_RIGHT_UP (wxStyledTextCtrl::OnMouseRightUp)
115 #else
116 EVT_CONTEXT_MENU (wxStyledTextCtrl::OnContextMenu)
117 #endif
118 EVT_MOUSEWHEEL (wxStyledTextCtrl::OnMouseWheel)
119 EVT_CHAR (wxStyledTextCtrl::OnChar)
120 EVT_KEY_DOWN (wxStyledTextCtrl::OnKeyDown)
121 EVT_KILL_FOCUS (wxStyledTextCtrl::OnLoseFocus)
122 EVT_SET_FOCUS (wxStyledTextCtrl::OnGainFocus)
123 EVT_SYS_COLOUR_CHANGED (wxStyledTextCtrl::OnSysColourChanged)
124 EVT_ERASE_BACKGROUND (wxStyledTextCtrl::OnEraseBackground)
125 EVT_MENU_RANGE (-1, -1, wxStyledTextCtrl::OnMenu)
126 EVT_LISTBOX_DCLICK (-1, wxStyledTextCtrl::OnListBox)
127 END_EVENT_TABLE()
128
129
130 IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)
131 IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)
132
133 //----------------------------------------------------------------------
134 // Constructor and Destructor
135
136 wxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,
137 wxWindowID id,
138 const wxPoint& pos,
139 const wxSize& size,
140 long style,
141 const wxString& name) :
142 wxControl(parent, id, pos, size,
143 style | wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN,
144 wxDefaultValidator, name)
145 {
146 m_swx = new ScintillaWX(this);
147 m_stopWatch.Start();
148 m_lastKeyDownConsumed = FALSE;
149 m_vScrollBar = NULL;
150 m_hScrollBar = NULL;
151 }
152
153
154 wxStyledTextCtrl::~wxStyledTextCtrl() {
155 delete m_swx;
156 }
157
158
159 //----------------------------------------------------------------------
160
161 long wxStyledTextCtrl::SendMsg(int msg, long wp, long lp) {
162
163 return m_swx->WndProc(msg, wp, lp);
164 }
165
166
167 #ifdef MAKELONG
168 #undef MAKELONG
169 #endif
170
171 #define MAKELONG(a, b) ((a) | ((b) << 16))
172
173
174 static long wxColourAsLong(const wxColour& co) {
175 return (((long)co.Blue() << 16) |
176 ((long)co.Green() << 8) |
177 ((long)co.Red()));
178 }
179
180 static wxColour wxColourFromLong(long c) {
181 wxColour clr;
182 clr.Set(c & 0xff, (c >> 8) & 0xff, (c >> 16) & 0xff);
183 return clr;
184 }
185
186
187 static wxColour wxColourFromSpec(const wxString& spec) {
188 // spec should be #RRGGBB
189 char* junk;
190 int red = strtol(spec.Mid(1,2), &junk, 16);
191 int green = strtol(spec.Mid(3,2), &junk, 16);
192 int blue = strtol(spec.Mid(5,2), &junk, 16);
193 return wxColour(red, green, blue);
194 }
195
196
197 //----------------------------------------------------------------------
198 // BEGIN generated section. The following code is automatically generated
199 // by gen_iface.py from the contents of Scintilla.iface. Do not edit
200 // this file. Edit stc.cpp.in or gen_iface.py instead and regenerate.
201
202 %(METHOD_IMPS)s
203
204 // END of generated section
205 //----------------------------------------------------------------------
206
207
208 // Returns the line number of the line with the caret.
209 int wxStyledTextCtrl::GetCurrentLine() {
210 int line = LineFromPosition(GetCurrentPos());
211 return line;
212 }
213
214
215 // Extract style settings from a spec-string which is composed of one or
216 // more of the following comma separated elements:
217 //
218 // bold turns on bold
219 // italic turns on italics
220 // fore:#RRGGBB sets the foreground colour
221 // back:#RRGGBB sets the background colour
222 // face:[facename] sets the font face name to use
223 // size:[num] sets the font size in points
224 // eol turns on eol filling
225 // underline turns on underlining
226 //
227 void wxStyledTextCtrl::StyleSetSpec(int styleNum, const wxString& spec) {
228
229 wxStringTokenizer tkz(spec, ",");
230 while (tkz.HasMoreTokens()) {
231 wxString token = tkz.GetNextToken();
232
233 wxString option = token.BeforeFirst(':');
234 wxString val = token.AfterFirst(':');
235
236 if (option == "bold")
237 StyleSetBold(styleNum, true);
238
239 else if (option == "italic")
240 StyleSetItalic(styleNum, true);
241
242 else if (option == "underline")
243 StyleSetUnderline(styleNum, true);
244
245 else if (option == "eol")
246 StyleSetEOLFilled(styleNum, true);
247
248 else if (option == "size") {
249 long points;
250 if (val.ToLong(&points))
251 StyleSetSize(styleNum, points);
252 }
253
254 else if (option == "face")
255 StyleSetFaceName(styleNum, val);
256
257 else if (option == "fore")
258 StyleSetForeground(styleNum, wxColourFromSpec(val));
259
260 else if (option == "back")
261 StyleSetBackground(styleNum, wxColourFromSpec(val));
262 }
263 }
264
265
266 // Set style size, face, bold, italic, and underline attributes from
267 // a wxFont's attributes.
268 void wxStyledTextCtrl::StyleSetFont(int styleNum, wxFont& font) {
269 int size = font.GetPointSize();
270 wxString faceName = font.GetFaceName();
271 bool bold = font.GetWeight() == wxBOLD;
272 bool italic = font.GetStyle() != wxNORMAL;
273 bool under = font.GetUnderlined();
274
275 // TODO: add encoding/charset mapping
276 StyleSetFontAttr(styleNum, size, faceName, bold, italic, under);
277 }
278
279 // Set all font style attributes at once.
280 void wxStyledTextCtrl::StyleSetFontAttr(int styleNum, int size,
281 const wxString& faceName,
282 bool bold, bool italic,
283 bool underline) {
284 StyleSetSize(styleNum, size);
285 StyleSetFaceName(styleNum, faceName);
286 StyleSetBold(styleNum, bold);
287 StyleSetItalic(styleNum, italic);
288 StyleSetUnderline(styleNum, underline);
289
290 // TODO: add encoding/charset mapping
291 }
292
293
294 // Perform one of the operations defined by the wxSTC_CMD_* constants.
295 void wxStyledTextCtrl::CmdKeyExecute(int cmd) {
296 SendMsg(cmd);
297 }
298
299
300 // Set the left and right margin in the edit area, measured in pixels.
301 void wxStyledTextCtrl::SetMargins(int left, int right) {
302 SetMarginLeft(left);
303 SetMarginRight(right);
304 }
305
306
307 // Retrieve the start and end positions of the current selection.
308 void wxStyledTextCtrl::GetSelection(int* startPos, int* endPos) {
309 if (startPos != NULL)
310 *startPos = SendMsg(SCI_GETSELECTIONSTART);
311 if (endPos != NULL)
312 *endPos = SendMsg(SCI_GETSELECTIONEND);
313 }
314
315
316 // Retrieve the point in the window where a position is displayed.
317 wxPoint wxStyledTextCtrl::PointFromPosition(int pos) {
318 int x = SendMsg(SCI_POINTXFROMPOSITION, 0, pos);
319 int y = SendMsg(SCI_POINTYFROMPOSITION, 0, pos);
320 return wxPoint(x, y);
321 }
322
323 // Scroll enough to make the given line visible
324 void wxStyledTextCtrl::ScrollToLine(int line) {
325 m_swx->DoScrollToLine(line);
326 }
327
328
329 // Scroll enough to make the given column visible
330 void wxStyledTextCtrl::ScrollToColumn(int column) {
331 m_swx->DoScrollToColumn(column);
332 }
333
334
335
336 //----------------------------------------------------------------------
337 // Event handlers
338
339 void wxStyledTextCtrl::OnPaint(wxPaintEvent& evt) {
340 wxPaintDC dc(this);
341 wxRegion region = GetUpdateRegion();
342
343 m_swx->DoPaint(&dc, region.GetBox());
344 }
345
346 void wxStyledTextCtrl::OnScrollWin(wxScrollWinEvent& evt) {
347 if (evt.GetOrientation() == wxHORIZONTAL)
348 m_swx->DoHScroll(evt.GetEventType(), evt.GetPosition());
349 else
350 m_swx->DoVScroll(evt.GetEventType(), evt.GetPosition());
351 }
352
353 void wxStyledTextCtrl::OnScroll(wxScrollEvent& evt) {
354 wxScrollBar* sb = wxDynamicCast(evt.GetEventObject(), wxScrollBar);
355 if (sb) {
356 if (sb->IsVertical())
357 m_swx->DoVScroll(evt.GetEventType(), evt.GetPosition());
358 else
359 m_swx->DoHScroll(evt.GetEventType(), evt.GetPosition());
360 }
361 }
362
363 void wxStyledTextCtrl::OnSize(wxSizeEvent& evt) {
364 wxSize sz = GetClientSize();
365 m_swx->DoSize(sz.x, sz.y);
366 }
367
368 void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
369 wxPoint pt = evt.GetPosition();
370 m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
371 evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
372 }
373
374 void wxStyledTextCtrl::OnMouseMove(wxMouseEvent& evt) {
375 wxPoint pt = evt.GetPosition();
376 m_swx->DoButtonMove(Point(pt.x, pt.y));
377 }
378
379 void wxStyledTextCtrl::OnMouseLeftUp(wxMouseEvent& evt) {
380 wxPoint pt = evt.GetPosition();
381 m_swx->DoButtonUp(Point(pt.x, pt.y), m_stopWatch.Time(),
382 evt.ControlDown());
383 }
384
385
386 void wxStyledTextCtrl::OnMouseRightUp(wxMouseEvent& evt) {
387 wxPoint pt = evt.GetPosition();
388 m_swx->DoContextMenu(Point(pt.x, pt.y));
389 }
390
391
392 void wxStyledTextCtrl::OnContextMenu(wxContextMenuEvent& evt) {
393 wxPoint pt = evt.GetPosition();
394 ScreenToClient(&pt.x, &pt.y);
395 m_swx->DoContextMenu(Point(pt.x, pt.y));
396 }
397
398
399 void wxStyledTextCtrl::OnMouseWheel(wxMouseEvent& evt) {
400 m_swx->DoMouseWheel(evt.GetWheelRotation(),
401 evt.GetWheelDelta(),
402 evt.GetLinesPerAction(),
403 evt.ControlDown());
404 }
405
406
407 void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
408 long key = evt.KeyCode();
409
410 // printf("OnChar key:%%d consumed:%%d ctrl:%%d alt:%%d\n",
411 // key, m_lastKeyDownConsumed, evt.ControlDown(), evt.AltDown());
412
413 // AltGr keys???
414 // \|@#¬[]{}?£$~ ã,õ,Ã,Õ, ñ, Ñ
415
416 // On (some?) non-US keyboards the AltGr key is required to enter some
417 // common characters. It comes to us as both Alt and Ctrl down so we need
418 // to let the char through in that case, otherwise if only ctrl or only
419 // alt let's skip it.
420 bool ctrl = evt.ControlDown();
421 bool alt = evt.AltDown();
422 bool skip = ((ctrl || alt) && ! (ctrl && alt));
423
424 if (key <= 0xff && key >= 32 && !m_lastKeyDownConsumed && !skip) {
425 m_swx->DoAddChar(key);
426 return;
427 }
428 evt.Skip();
429 }
430
431
432 void wxStyledTextCtrl::OnKeyDown(wxKeyEvent& evt) {
433 long key = evt.KeyCode();
434 bool shift = evt.ShiftDown(),
435 ctrl = evt.ControlDown(),
436 alt = evt.AltDown();
437
438 int processed = m_swx->DoKeyDown(key, shift, ctrl, alt, &m_lastKeyDownConsumed);
439
440 // printf("key: %%d shift: %%d ctrl: %%d alt: %%d processed: %%d consumed: %%d\n",
441 // key, shift, ctrl, alt, processed, m_lastKeyDownConsumed);
442
443 if (!processed && !m_lastKeyDownConsumed)
444 evt.Skip();
445 }
446
447
448 void wxStyledTextCtrl::OnLoseFocus(wxFocusEvent& evt) {
449 m_swx->DoLoseFocus();
450 }
451
452
453 void wxStyledTextCtrl::OnGainFocus(wxFocusEvent& evt) {
454 m_swx->DoGainFocus();
455 }
456
457
458 void wxStyledTextCtrl::OnSysColourChanged(wxSysColourChangedEvent& evt) {
459 m_swx->DoSysColourChange();
460 }
461
462
463 void wxStyledTextCtrl::OnEraseBackground(wxEraseEvent& evt) {
464 // do nothing to help avoid flashing
465 }
466
467
468
469 void wxStyledTextCtrl::OnMenu(wxCommandEvent& evt) {
470 m_swx->DoCommand(evt.GetId());
471 }
472
473
474 void wxStyledTextCtrl::OnListBox(wxCommandEvent& evt) {
475 m_swx->DoOnListBox();
476 }
477
478
479 //----------------------------------------------------------------------
480 // Turn notifications from Scintilla into events
481
482
483 void wxStyledTextCtrl::NotifyChange() {
484 wxStyledTextEvent evt(wxEVT_STC_CHANGE, GetId());
485 evt.SetEventObject(this);
486 GetEventHandler()->ProcessEvent(evt);
487 }
488
489 void wxStyledTextCtrl::NotifyParent(SCNotification* _scn) {
490 SCNotification& scn = *_scn;
491 wxStyledTextEvent evt(0, GetId());
492
493 evt.SetEventObject(this);
494 evt.SetPosition(scn.position);
495 evt.SetKey(scn.ch);
496 evt.SetModifiers(scn.modifiers);
497
498 switch (scn.nmhdr.code) {
499 case SCN_STYLENEEDED:
500 evt.SetEventType(wxEVT_STC_STYLENEEDED);
501 break;
502
503 case SCN_CHARADDED:
504 evt.SetEventType(wxEVT_STC_CHARADDED);
505 break;
506
507 case SCN_SAVEPOINTREACHED:
508 evt.SetEventType(wxEVT_STC_SAVEPOINTREACHED);
509 break;
510
511 case SCN_SAVEPOINTLEFT:
512 evt.SetEventType(wxEVT_STC_SAVEPOINTLEFT);
513 break;
514
515 case SCN_MODIFYATTEMPTRO:
516 evt.SetEventType(wxEVT_STC_ROMODIFYATTEMPT);
517 break;
518
519 case SCN_KEY:
520 evt.SetEventType(wxEVT_STC_KEY);
521 break;
522
523 case SCN_DOUBLECLICK:
524 evt.SetEventType(wxEVT_STC_DOUBLECLICK);
525 break;
526
527 case SCN_UPDATEUI:
528 evt.SetEventType(wxEVT_STC_UPDATEUI);
529 break;
530
531 case SCN_MODIFIED:
532 evt.SetEventType(wxEVT_STC_MODIFIED);
533 evt.SetModificationType(scn.modificationType);
534 if (scn.text)
535 evt.SetText(wxString(scn.text, scn.length));
536 evt.SetLength(scn.length);
537 evt.SetLinesAdded(scn.linesAdded);
538 evt.SetLine(scn.line);
539 evt.SetFoldLevelNow(scn.foldLevelNow);
540 evt.SetFoldLevelPrev(scn.foldLevelPrev);
541 break;
542
543 case SCN_MACRORECORD:
544 evt.SetEventType(wxEVT_STC_MACRORECORD);
545 evt.SetMessage(scn.message);
546 evt.SetWParam(scn.wParam);
547 evt.SetLParam(scn.lParam);
548 break;
549
550 case SCN_MARGINCLICK:
551 evt.SetEventType(wxEVT_STC_MARGINCLICK);
552 evt.SetMargin(scn.margin);
553 break;
554
555 case SCN_NEEDSHOWN:
556 evt.SetEventType(wxEVT_STC_NEEDSHOWN);
557 evt.SetLength(scn.length);
558 break;
559
560 case SCN_POSCHANGED:
561 evt.SetEventType(wxEVT_STC_POSCHANGED);
562 break;
563
564 case SCN_PAINTED:
565 evt.SetEventType(wxEVT_STC_PAINTED);
566 break;
567
568 case SCN_USERLISTSELECTION:
569 evt.SetEventType(wxEVT_STC_USERLISTSELECTION);
570 evt.SetListType(scn.listType);
571 evt.SetText(scn.text);
572 break;
573
574 case SCN_URIDROPPED:
575 evt.SetEventType(wxEVT_STC_URIDROPPED);
576 evt.SetText(scn.text);
577 break;
578
579 case SCN_DWELLSTART:
580 evt.SetEventType(wxEVT_STC_DWELLSTART);
581 evt.SetX(scn.x);
582 evt.SetY(scn.y);
583 break;
584
585 case SCN_DWELLEND:
586 evt.SetEventType(wxEVT_STC_DWELLEND);
587 evt.SetX(scn.x);
588 evt.SetY(scn.y);
589 break;
590
591 default:
592 return;
593 }
594
595 GetEventHandler()->ProcessEvent(evt);
596 }
597
598
599 //----------------------------------------------------------------------
600 //----------------------------------------------------------------------
601 //----------------------------------------------------------------------
602
603 wxStyledTextEvent::wxStyledTextEvent(wxEventType commandType, int id)
604 : wxCommandEvent(commandType, id)
605 {
606 m_position = 0;
607 m_key = 0;
608 m_modifiers = 0;
609 m_modificationType = 0;
610 m_length = 0;
611 m_linesAdded = 0;
612 m_line = 0;
613 m_foldLevelNow = 0;
614 m_foldLevelPrev = 0;
615 m_margin = 0;
616 m_message = 0;
617 m_wParam = 0;
618 m_lParam = 0;
619 m_listType = 0;
620 m_x = 0;
621 m_y = 0;
622 m_dragAllowMove = FALSE;
623 m_dragResult = wxDragNone;
624 }
625
626 bool wxStyledTextEvent::GetShift() const { return (m_modifiers & SCI_SHIFT) != 0; }
627 bool wxStyledTextEvent::GetControl() const { return (m_modifiers & SCI_CTRL) != 0; }
628 bool wxStyledTextEvent::GetAlt() const { return (m_modifiers & SCI_ALT) != 0; }
629
630
631 wxStyledTextEvent::wxStyledTextEvent(const wxStyledTextEvent& event):
632 wxCommandEvent(event)
633 {
634 m_position = event.m_position;
635 m_key = event.m_key;
636 m_modifiers = event.m_modifiers;
637 m_modificationType = event.m_modificationType;
638 m_text = event.m_text;
639 m_length = event.m_length;
640 m_linesAdded = event.m_linesAdded;
641 m_line = event.m_line;
642 m_foldLevelNow = event.m_foldLevelNow;
643 m_foldLevelPrev = event.m_foldLevelPrev;
644
645 m_margin = event.m_margin;
646
647 m_message = event.m_message;
648 m_wParam = event.m_wParam;
649 m_lParam = event.m_lParam;
650
651 m_listType = event.m_listType;
652 m_x = event.m_x;
653 m_y = event.m_y;
654
655 m_dragText = event.m_dragText;
656 m_dragAllowMove =event.m_dragAllowMove;
657 m_dragResult = event.m_dragResult;
658 }
659
660 //----------------------------------------------------------------------
661 //----------------------------------------------------------------------
662
663
664
665
666
667
668
669
670