예제 #1
0
/*
 =======================================================================================================================
 =======================================================================================================================
 */
int CNewTexWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) {
	if (CWnd::OnCreate(lpCreateStruct) == -1) {
		return -1;
	}

	ShowScrollBar(SB_VERT, g_PrefsDlg.m_bTextureScrollbar);
	m_bNeedRange = true;

	hdcTexture = GetDC();
	QEW_SetupPixelFormat(hdcTexture->m_hDC, false);

	EnableToolTips(TRUE);
	EnableTrackingToolTips(TRUE);

	return 0;
}
void DPTextBox::m_Create()
{
	if(m_Parent && !m_bCreate)
	{
		static int uint = 7839723;
		m_bCreate = _Parent::Create(ES_AUTOHSCROLL | WS_BORDER | ES_LEFT, m_Rectangle, m_Parent, uint++);

		if(m_bCreate)
		{
			EnableToolTips(TRUE);
			//SetBkColor(DARKSLATEGRAYCOL);
			//SetText(std::string("File Name will be displayed here"));
			EnableTrackingToolTips(TRUE);
			//SetMargins(10, 100);
			ShowWindow(SW_SHOW);
		}


	}
}