object Form1: TForm1 Left = 240 Top = 114 Width = 548 Height = 400 Caption = 'Form1' Color = clBtnFace Font.C…
COMBOBOX 源代码
hwndCtl为此组合框的句柄,lpsz为需要添加的字符串,组合框不能直接通过id添加内容,所以需要得到这个控件的句柄,还得使用GetDlgItem()函数.
object Form1: TForm1 Left = 240 Top = 114 Width = 548 Height = 400 Caption = 'Form1' Color = clBtnFace Font.C…
object Form1: TForm1 Left = 240 Top = 114 Width = 548 Height = 400 Caption = 'Form1' Color = clBtnFace Font.C…
object frmMain: TfrmMain Left = 129 Top = 102 AutoScroll = False Caption = #26408#20598' 2008' ClientHeight = 369 …
问题在于 COMBOBOX 的属性Style 应该设置为:0-Dropdown Combo。
object Form1: TForm1 Left = 240 Top = 114 Width = 548 Height = 400 Caption = 'Form1' Color = clBtnFace Font.C…
object Form1: TForm1 Left = 240 Top = 114 Width = 548 Height = 400 Caption = 'Form1' Color = clBtnFace Font.C…
object Form1: TForm1 Left = 240 Top = 114 Width = 548 Height = 400 Caption = 'Form1' Color = clBtnFace Font.C…
object Form1: TForm1 Left = 240 Top = 114 Width = 548 Height = 400 Caption = 'Form1' Color = clBtnFace Font.C…
object Form1: TForm1 Left = 240 Top = 114 Width = 548 Height = 400 Caption = 'Form1' Color = clBtnFace Font.C…