ComboBoxMessage: Unterschied zwischen den Versionen

Aus API-Wiki
Wechseln zu: Navigation, Suche
K (CB_ADDSTRING)
(Am Format gebastelt)
Zeile 1: Zeile 1:
 
== Deklaration ==
 
== Deklaration ==
 +
<pre>
 +
'  Bei CB_BASE beginnen alle Combobox-Nachrichten
 +
Const CB_BASE As Long = &H140
  
    '  Bei CB_BASE beginnen alle Combobox-Nachrichten
+
'  Auflistung der möglichen Nachrichten einer Combobox
    Const CB_BASE As Long = &H140
+
Enum ComboBoxMessageEnum
 
+
    CB_GETEDITSEL = CB_BASE + &H0
    '  Auflistung der möglichen Nachrichten einer Combobox
+
    CB_LIMITTEXT = CB_BASE + &H1
    Enum ComboBoxMessageEnum
+
    CB_SETEDITSEL = CB_BASE + &H2
        CB_GETEDITSEL = CB_BASE + &H0
+
    CB_ADDSTRING = CB_BASE + &H3
        CB_LIMITTEXT = CB_BASE + &H1
+
    CB_DELETESTRING = CB_BASE + &H4
        CB_SETEDITSEL = CB_BASE + &H2
+
    CB_DIR = CB_BASE + &H5
        CB_ADDSTRING = CB_BASE + &H3
+
    CB_GETCOUNT = CB_BASE + &H6
        CB_DELETESTRING = CB_BASE + &H4
+
    CB_GETCURSEL = CB_BASE + &H7
        CB_DIR = CB_BASE + &H5
+
    CB_GETLBTEXT = CB_BASE + &H8
        CB_GETCOUNT = CB_BASE + &H6
+
    CB_GETLBTEXTLEN = CB_BASE + &H9
        CB_GETCURSEL = CB_BASE + &H7
+
    CB_INSERTSTRING = CB_BASE + &HA
        CB_GETLBTEXT = CB_BASE + &H8
+
    CB_RESETCONTENT = CB_BASE + &HB
        CB_GETLBTEXTLEN = CB_BASE + &H9
+
    CB_FINDSTRING = CB_BASE + &HC
        CB_INSERTSTRING = CB_BASE + &HA
+
    CB_SELECTSTRING = CB_BASE + &HD
        CB_RESETCONTENT = CB_BASE + &HB
+
    CB_SETCURSEL = CB_BASE + &HE
        CB_FINDSTRING = CB_BASE + &HC
+
    CB_SHOWDROPDOWN = CB_BASE + &HF
        CB_SELECTSTRING = CB_BASE + &HD
+
    CB_GETITEMDATA = CB_BASE + &H10
        CB_SETCURSEL = CB_BASE + &HE
+
    CB_SETITEMDATA = CB_BASE + &H11
        CB_SHOWDROPDOWN = CB_BASE + &HF
+
    CB_GETDROPPEDCONTROLRECT = CB_BASE + &H12
        CB_GETITEMDATA = CB_BASE + &H10
+
    CB_SETITEMHEIGHT = CB_BASE + &H13
        CB_SETITEMDATA = CB_BASE + &H11
+
    CB_GETITEMHEIGHT = CB_BASE + &H14
        CB_GETDROPPEDCONTROLRECT = CB_BASE + &H12
+
    CB_SETEXTENDEDUI = CB_BASE + &H15
        CB_SETITEMHEIGHT = CB_BASE + &H13
+
    CB_GETEXTENDEDUI = CB_BASE + &H16
        CB_GETITEMHEIGHT = CB_BASE + &H14
+
    CB_GETDROPPEDSTATE = CB_BASE + &H17
        CB_SETEXTENDEDUI = CB_BASE + &H15
+
    CB_FINDSTRINGEXACT = CB_BASE + &H18
        CB_GETEXTENDEDUI = CB_BASE + &H16
+
    CB_SETLOCALE = CB_BASE + &H19
        CB_GETDROPPEDSTATE = CB_BASE + &H17
+
    CB_GETLOCALE = CB_BASE + &H1A
        CB_FINDSTRINGEXACT = CB_BASE + &H18
+
    CB_GETTOPINDEX = CB_BASE + &H1B
        CB_SETLOCALE = CB_BASE + &H19
+
    CB_SETTOPINDEX = CB_BASE + &H1C
        CB_GETLOCALE = CB_BASE + &H1A
+
    CB_GETHORIZONTALEXTENT = CB_BASE + &H1D
        CB_GETTOPINDEX = CB_BASE + &H1B
+
    CB_SETHORIZONTALEXTENT = CB_BASE + &H1E
        CB_SETTOPINDEX = CB_BASE + &H1C
+
    CB_GETDROPPEDWIDTH = CB_BASE + &H1F
        CB_GETHORIZONTALEXTENT = CB_BASE + &H1D
+
    CB_SETDROPPEDWIDTH = CB_BASE + &H20
        CB_SETHORIZONTALEXTENT = CB_BASE + &H1E
+
    CB_INITSTORAGE = CB_BASE + &H21
        CB_GETDROPPEDWIDTH = CB_BASE + &H1F
+
    CB_MSGMAX = CB_BASE + &H22
        CB_SETDROPPEDWIDTH = CB_BASE + &H20
+
End Enum
        CB_INITSTORAGE = CB_BASE + &H21
+
</pre>
        CB_MSGMAX = CB_BASE + &H22
 
    End Enum
 
  
 
Die Nachrichten können mit [[SendMessage]] oder [[PostMessage]] versandt werden.
 
Die Nachrichten können mit [[SendMessage]] oder [[PostMessage]] versandt werden.

Version vom 26. Februar 2007, 14:57 Uhr

Deklaration

'   Bei CB_BASE beginnen alle Combobox-Nachrichten
Const CB_BASE As Long = &H140

'   Auflistung der möglichen Nachrichten einer Combobox
Enum ComboBoxMessageEnum
    CB_GETEDITSEL = CB_BASE + &H0
    CB_LIMITTEXT = CB_BASE + &H1
    CB_SETEDITSEL = CB_BASE + &H2
    CB_ADDSTRING = CB_BASE + &H3
    CB_DELETESTRING = CB_BASE + &H4
    CB_DIR = CB_BASE + &H5
    CB_GETCOUNT = CB_BASE + &H6
    CB_GETCURSEL = CB_BASE + &H7
    CB_GETLBTEXT = CB_BASE + &H8
    CB_GETLBTEXTLEN = CB_BASE + &H9
    CB_INSERTSTRING = CB_BASE + &HA
    CB_RESETCONTENT = CB_BASE + &HB
    CB_FINDSTRING = CB_BASE + &HC
    CB_SELECTSTRING = CB_BASE + &HD
    CB_SETCURSEL = CB_BASE + &HE
    CB_SHOWDROPDOWN = CB_BASE + &HF
    CB_GETITEMDATA = CB_BASE + &H10
    CB_SETITEMDATA = CB_BASE + &H11
    CB_GETDROPPEDCONTROLRECT = CB_BASE + &H12
    CB_SETITEMHEIGHT = CB_BASE + &H13
    CB_GETITEMHEIGHT = CB_BASE + &H14
    CB_SETEXTENDEDUI = CB_BASE + &H15
    CB_GETEXTENDEDUI = CB_BASE + &H16
    CB_GETDROPPEDSTATE = CB_BASE + &H17
    CB_FINDSTRINGEXACT = CB_BASE + &H18
    CB_SETLOCALE = CB_BASE + &H19
    CB_GETLOCALE = CB_BASE + &H1A
    CB_GETTOPINDEX = CB_BASE + &H1B
    CB_SETTOPINDEX = CB_BASE + &H1C
    CB_GETHORIZONTALEXTENT = CB_BASE + &H1D
    CB_SETHORIZONTALEXTENT = CB_BASE + &H1E
    CB_GETDROPPEDWIDTH = CB_BASE + &H1F
    CB_SETDROPPEDWIDTH = CB_BASE + &H20
    CB_INITSTORAGE = CB_BASE + &H21
    CB_MSGMAX = CB_BASE + &H22
End Enum

Die Nachrichten können mit SendMessage oder PostMessage versandt werden.


Beschreibung

CB_ADDSTRING

Wert (hex/dez): &h143 = 323

MSDN Libray

Diese Nachricht wird an eine Combobox gesandt, wenn ein neues Element in die Liste der Combobox geschrieben werden soll. wParam muß den Wert 0 enthalten, lParam den Zeiger auf die hinzuzufügende Zeichenkette. Die Zeichenkette muß mit einem Nullbyte (vbNullChar) abgeschlossen sein.