cs_sebV
Messages postés107Date d'inscriptionmardi 20 août 2002StatutMembreDernière intervention15 octobre 2004
-
24 déc. 2002 à 11:06
cs_pepsi
Messages postés63Date d'inscriptionmercredi 19 février 2003StatutMembreDernière intervention 6 janvier 2009
-
15 mars 2004 à 19:59
J'aimerais savoir comment faire pour importer une image dans un RichTextBox, merci.
TheSaib
Messages postés2367Date d'inscriptionmardi 17 avril 2001StatutMembreDernière intervention26 décembre 200723 26 déc. 2002 à 01:18
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _
hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _
lParam As Any) As Long
Private Const WM_PASTE = &H302
Sub InsertPicture (RTB As RichTextBox, Picture As StdPicture)
' Copie la picture ds le clipboard.
Clipboard.Clear
Clipboard.SetData Picture
' paste ds le RichTextBox
SendMessage RTB.hwnd, WM_PASTE, 0, 0
End Sub