예제 #1
0
void CTradeFundHSOpenDlg::OnWindowFocused()
{
	if (IsShow())
	{
		m_cbFundCompany.SetFocus();
	}
}
예제 #2
0
void CTradeStockBaseDlg::MessageFillCodePrice(CString sCodeField, CString sPriceField, CLinkageParam* pParam)
{
	if (IsShow())
	{
		CString sStockCode = pParam->GetStringField(sCodeField);
		if (!sStockCode.IsEmpty())
		{
			if(m_sLastStockCode != sStockCode)
			{
				m_edStockCode.SetFocus();
				Clear();
				m_edStockCode.SetWindowText(sStockCode);
			}
			if (!sPriceField.IsEmpty())
			{
				CString sPrice = pParam->GetStringField(sPriceField);
				if (!sPrice.IsEmpty())
				{
					m_edPrice.SetWindowText(sPrice);
					m_edPrice.SetKeyFlag(TRUE);
					m_edAmount.SetFocus();
					OnEntrustPriceExit();
				}
			}
		}
	}			
}
예제 #3
0
void CTradeFundHSOpenDlg::OnHotKey(UINT nId)
{
	if (IsShow())
	{
		if (HOTKEY_ENTRUST_ID == nId)
		{
			OnBnClickedBtOk();
		}
	}	
}
예제 #4
0
void CTradeStockBaseDlg::OnHotKey(UINT nId)
{
	if (IsShow())
	{
		if (HOTKEY_ENTRUST_ID == nId)
		{
			OnBnClickedBtOk();
		}
	}	
}
예제 #5
0
// Hide the window
void Hide(HWND hWnd, UINT id)
{
	// Validate arguments
	if (hWnd == NULL)
	{
		return;
	}

	if (IsShow(hWnd, id))
	{
		ShowWindow(DlgItem(hWnd, id), SW_HIDE);
	}
}
예제 #6
0
void CDlgDiagramHolder::OnLinkageMsg(CLinkageParam* pParam)
{
	if(!IsShow())
		return;

	CWndUpdateLocker(this->m_pDiagramView);

	if(pParam->m_nMsg == QUOTE_MESSAGE_CODE_CHANGE)
	{
		OnMsgCodeChanged(pParam);
	}
	else if( pParam->m_nMsg == QUOTE_MESSAGE_NOTIFY_DIAGRAM_LAYOUT)
	{
		OnMsgNotifyDiagramLayout(pParam);
	}
	else if( pParam->m_nMsg == QUOTE_MESSAGE_CODE_PAGE_UP_DOWN)
	{
		OnMsgCodePageUpDown(pParam);
	}
	
}
예제 #7
0
void CTradeLockDlg::OnWindowFocused()
{
	if (IsShow())
		m_edPsw.SetFocus();
}
예제 #8
0
void CTradeStockBaseDlg::OnWindowFocused()
{
	if (IsShow())
		m_edStockCode.SetFocus();
}