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

📄 vtl_combox.cpp

📁 WinCE 下实现Listctrl自画
💻 CPP
字号:
#include   "stdafx.h" 
#include "VTL_ComBox.h"



CLWnd::CLWnd(HWND parentWnd)
:ml_parentWnd(parentWnd),ml_msgID(0)
{
	m_crTransparent = RGB(255,0,255);	
}


CLComboBox::CLComboBox(HWND parentWnd)
:CLWnd(parentWnd),ml_cur(-1),
ml_maxstr(80),ml_total(0)
{
	memset(context, 0, sizeof(CString *)*ml_maxstr);	
}

CString * CLComboBox::GetConByindex(DWORD index) const
{
	if(index<=0)
		return context[0];
	else
		return context[index-1];
}

DWORD	CLComboBox::GetCurIndex() const
{
	return ml_cur;
}

DWORD CLComboBox::GetTotalIndex() const
{
	return ml_total;
}

⌨️ 快捷键说明

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