📄 uicombox.cpp
字号:
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "uicombox.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
BEGIN_MESSAGE_MAP(CUIComBox, CComboBox)
END_MESSAGE_MAP()
CUIComBox::CUIComBox()
{
}
CUIComBox::~CUIComBox()
{
}
void CUIComBox::Init(const RECT& rect, CWnd* pParentWnd, DWORD dwID,DWORD *dwParam)
{
DWORD dwStyle=WS_CHILD | WS_VISIBLE | CBS_AUTOHSCROLL | /*CBS_NOINTEGRALHEIGHT |*/ LBS_HASSTRINGS | WS_VSCROLL;
m_dwthisID=dwID;
if(!Create(dwStyle,rect,pParentWnd,m_dwthisID))//must pParentWnd not this
{
MessageBox(_T("CUIComBox Create Fails!"));
return;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -