- Timestamp:
- Apr 30, 2007 3:11:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxClipboard.cpp
r2386 r2436 334 334 335 335 default: 336 break; 336 if (format >= 0xC000) 337 { 338 TCHAR szFormatName[256]; 339 340 int cActual = GetClipboardFormatName(format, szFormatName, sizeof(szFormatName)/sizeof (TCHAR)); 341 342 if (cActual) 343 { 344 if (strcmp (szFormatName, "HTML Format") == 0) 345 { 346 u32Formats |= VBOX_SHARED_CLIPBOARD_FMT_HTML; 347 } 348 } 349 } 350 break; 337 351 } 338 352 } … … 410 424 411 425 default: 412 break; 426 if (format >= 0xC000) 427 { 428 TCHAR szFormatName[256]; 429 430 int cActual = GetClipboardFormatName(format, szFormatName, sizeof(szFormatName)/sizeof (TCHAR)); 431 432 if (cActual) 433 { 434 if (strcmp (szFormatName, "HTML Format") == 0) 435 { 436 u32Format |= VBOX_SHARED_CLIPBOARD_FMT_HTML; 437 } 438 } 439 } 440 break; 413 441 } 414 442 … … 568 596 } 569 597 598 if (u32Formats & VBOX_SHARED_CLIPBOARD_FMT_HTML) 599 { 600 UINT format = RegisterClipboardFormat ("HTML Format"); 601 dprintf(("window proc WM_USER: VBOX_SHARED_CLIPBOARD_FMT_HTML 0x%04X\n", format)); 602 if (format != 0) 603 { 604 hClip = SetClipboardData (format, NULL); 605 } 606 } 607 570 608 CloseClipboard(); 571 609 … … 632 670 { 633 671 hClip = NULL; 672 } 673 } 674 } 675 else if (u32Formats & VBOX_SHARED_CLIPBOARD_FMT_HTML) 676 { 677 UINT format = RegisterClipboardFormat ("HTML Format"); 678 679 if (format != 0) 680 { 681 hClip = GetClipboardData (format); 682 683 if (hClip != NULL) 684 { 685 LPVOID lp = GlobalLock (hClip); 686 687 if (lp != NULL) 688 { 689 dprintf(("CF_HTML\n")); 690 691 vboxClipboardWriteData (pCtx, VBOX_SHARED_CLIPBOARD_FMT_HTML, 692 lp, GlobalSize (hClip)); 693 694 GlobalUnlock(hClip); 695 } 696 else 697 { 698 hClip = NULL; 699 } 634 700 } 635 701 }
Note:
See TracChangeset
for help on using the changeset viewer.