tlabelcombobox.cpp

来自「类似于OutLook窗口的XFloorWnd ActiveX控件源程序」· C++ 代码 · 共 55 行

CPP
55
字号
/************************************
  REVISION LOG ENTRY
  Revision By: Mihai Filimon
  Revised on 8/23/98 19:33:54
  Comments: TLabelComboBox.cpp: implementation of the CTLabelComboBox class.
 ************************************/

#include "stdafx.h"
#include "TLabelComboBox.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

// Function name	: CTLabelComboBox::CTLabelComboBox
// Description	    : Default constructor
// Return type		: 
CTLabelComboBox::CTLabelComboBox()
{

}

// Function name	: CTLabelComboBox::~CTLabelComboBox
// Description	    : virtual destructor
// Return type		: 
CTLabelComboBox::~CTLabelComboBox()
{

}

// Function name	: CTLabelComboBox::GetEditControl
// Description	    : Get edit from combo
// Return type		: CWnd* 
CWnd* CTLabelComboBox::GetEditControl()
{
	CWnd* pWnd = GetWindowControl();
	switch (pWnd->GetStyle() & 0x3)
	{
		case CBS_SIMPLE:
		case CBS_DROPDOWN:
			return pWnd->GetDlgItem(1001);
			break;
		case CBS_DROPDOWNLIST:
			return pWnd;
			break;
	}
	return NULL;
}

⌨️ 快捷键说明

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