604

ActiveX: InternetExplorer as container.

Neznaiu mojet ktoto stalkivalsea s takimi problemami, ia uje 2 dnea muceaiusi s nimi... nihera ne poluceaetsea....Delaiu ActiveX control, kotorii budet hostitsea v IE.Control imeet svoio okno (ne windowless).V etom okne esti nekotorie child obiecti, a imenno dialog zdelannii iz resursa, v OnCreate: LoginDlg = new CLoginDlg; LoginDlg->Create(IDD_LOGIN,this);Mojno posmotreti zdesi kak vsio vigleadit:http://ournet.md/~kernel.pngTeperi shtoto nesovsem poneatnoe proishodit:)v editboxe ne rabotaiut knopki enter,backspace,delete,vperiod,nazad:)Ne rabotaet daje esli control UIActivated.Butoni toje samoe nelizea na nih najati enter.. toliko space.Ia kakto kucereavo zdelal shtobi rabotali eti knopki sleduiushim vidom:BOOL CClientCtrl::PreTranslateMessage(MSG* pMsg){switch (pMsg->message) { case WM_KEYDOWN: case WM_KEYUP: switch (pMsg->wParam) { case VK_UP: case VK_DOWN: case VK_LEFT: case VK_RIGHT: case VK_HOME: case VK_END: ::SendMessage(pMsg->hwnd,pMsg->message, pMsg->wParam, pMsg->lParam); return TRUE; } break;}No vsioravno ne to ... kakto:)I eshio esli object UIDeactivated i najati na zonu 1 (iz risunka) to object activiruetsea i na Butoni stavitsea caption. A esli najati zonu 2 to na buttoni ne stavitsea kaption, a vrucinuiu UIActivizirovati ne daiot tot je rezulitat shto i click na zonu 1...
0