void CTradeFundHSOpenDlg::OnWindowFocused() { if (IsShow()) { m_cbFundCompany.SetFocus(); } }
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(); } } } } }
void CTradeFundHSOpenDlg::OnHotKey(UINT nId) { if (IsShow()) { if (HOTKEY_ENTRUST_ID == nId) { OnBnClickedBtOk(); } } }
void CTradeStockBaseDlg::OnHotKey(UINT nId) { if (IsShow()) { if (HOTKEY_ENTRUST_ID == nId) { OnBnClickedBtOk(); } } }
// 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); } }
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); } }
void CTradeLockDlg::OnWindowFocused() { if (IsShow()) m_edPsw.SetFocus(); }
void CTradeStockBaseDlg::OnWindowFocused() { if (IsShow()) m_edStockCode.SetFocus(); }