⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mycombo.h

📁 此程序包括三部分
💻 H
字号:
// ObjectWindows - (C) Copyright 1992 by Borland International

#ifndef __MYCOMBOBOX_H
#define __MYCOMBOBOX_H

#ifndef __COMBOBOX_H
#include <combobox.h>
#endif

#pragma option -Vo-

_CLASSDEF(TMyComboBox)
_CLASSDEF(TMyComboBoxData)

/* --------------------------------------------------------
  TMyComboBox
  -------------------------------------------------------- */

class _EXPORT TMyComboBox : public TComboBox
{
public:
    TMyComboBox(PTWindowsObject AParent, int AnId, int X, int Y, int W,
	      int H, DWORD AStyle, WORD ATextLen, PTModule AModule = NULL)
	      : TComboBox(AParent, AnId, X, Y, W, H, AStyle, ATextLen,
		AModule) {}
    TMyComboBox(PTWindowsObject AParent, int ResourceId, WORD ATextLen,
	      PTModule AModule = NULL)
	      : TComboBox(AParent, ResourceId, ATextLen, AModule) {}

    virtual WORD Transfer(Pvoid DataPtr, WORD TransferFlag);
};

class _EXPORT TMyComboBoxData
{
public:
    PTNSCollection Strings;
    Pchar Selection;

    TMyComboBoxData();
    ~TMyComboBoxData();
    void AddString(Pchar AString, BOOL IsSelected = FALSE);
};

#pragma option -Vo.

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -