567

Copy/Paste

Vrea sa fac ca in aplicatia mea cind se face click dreapta sau alt buton de pe mouse deasupra la un EditBox sa se faca Paste, adica ceea ce era in buffer sa apara intr-un editboxce nu fac eu corect?source:if (Button==mbRight){char * buffer = NULL;String fromClipboard;HANDLE hData;//deschide clipboardOpenClipboard(hData); hData = GetClipboardData( CF_TEXT ); buffer = (char*)GlobalLock( hData );fromClipboard = buffer;GlobalUnlock( hData );CloseClipboard(); Edit1->Text=fromClipboard;???10x anticipat!
0