comparison dwt/dnd/Transfer.d @ 136:04e357b8343d

DragSource
author Frank Benoit <benoit@tionex.de>
date Wed, 13 Feb 2008 14:24:54 +0100
parents 242e33c0e383
children ab60f3309436
comparison
equal deleted inserted replaced
135:242e33c0e383 136:04e357b8343d
135 */ 135 */
136 public static int registerType(char[] formatName) { 136 public static int registerType(char[] formatName) {
137 // Look name up in the registry 137 // Look name up in the registry
138 // If name is not in registry, add it and return assigned value. 138 // If name is not in registry, add it and return assigned value.
139 // If name already exists in registry, return its assigned value 139 // If name already exists in registry, return its assigned value
140 TCHAR chFormatName = new TCHAR(0, formatName, true); 140 TCHAR* chFormatName = StrToTCHARz(0, formatName);
141 return OS.RegisterClipboardFormat(chFormatName); 141 return OS.RegisterClipboardFormat(chFormatName);
142 } 142 }
143 143
144 /** 144 /**
145 * Test that the object is of the correct format for this Transfer class. 145 * Test that the object is of the correct format for this Transfer class.