Click here to Skip to main content
16,007,126 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Message for invisible control ? Pin
Sebastian S.22-Apr-04 22:14
Sebastian S.22-Apr-04 22:14 
GeneralRe: Message for invisible control ? Pin
f6423-Apr-04 13:30
f6423-Apr-04 13:30 
GeneralRe: Message for invisible control ? Pin
Sebastian S.25-Apr-04 22:13
Sebastian S.25-Apr-04 22:13 
Generalhuge time difference between 1st and 2nd run of VC++ dynamic dll Pin
apratimg21-Apr-04 21:14
sussapratimg21-Apr-04 21:14 
GeneralRe: huge time difference between 1st and 2nd run of VC++ dynamic dll Pin
Dudi Avramov22-Apr-04 3:55
Dudi Avramov22-Apr-04 3:55 
QuestionNo Windows messages in ATL 7 ??? Pin
divinxu21-Apr-04 13:39
divinxu21-Apr-04 13:39 
AnswerRe: No Windows messages in ATL 7 ??? Pin
Jörgen Sigvardsson2-May-04 6:33
Jörgen Sigvardsson2-May-04 6:33 
GeneralActiveX event delay Pin
Dimitris Vasiliadis21-Apr-04 2:57
Dimitris Vasiliadis21-Apr-04 2:57 
I am creating an activex treeview control (ATL, VC++ 6, Win2000) to use it from an MSAccess form.
I bind the control value to a field (RegionID, integer) in the form, and also bind a combo box in the same field. When I click some node on my activex control I fire an xxx_Updated event, and expect to see the combo box value change, but nothing happens, until my activex control loses the focus.
Is this the normal behaviour or am I doing something wrong, because I was expecting the other controls on the form that are bound on the same field like my activex control to be updated immediately when I fire the _Updated event, and not wait until my control loses the focus.

Thanks in advance for any help.

The code I use to fire the event is shown below.

<br />
LRESULT CTreeView::onclick(UINT uMsg, WPARAM wParam, LPARAM lParam, <br />
BOOL& bHandled)<br />
{<br />
    if (FireOnRequestEdit(DISPID_VALUE) == S_FALSE)<br />
    {<br />
        bHandled = FALSE;<br />
        return 0;<br />
    }<br />
<br />
    UNUSED_ALWAYS(wParam);<br />
    UNUSED_ALWAYS(uMsg);<br />
<br />
     POINT pt;<br />
    TVHITTESTINFO hti;<br />
<br />
     POINTSTOPOINT(pt, lParam);<br />
    hti.pt = pt;<br />
    HTREEITEM hItem = TreeView_HitTest(m_ctlSysCtrl.m_hWnd, <br />
&hti);<br />
<br />
    if (hti.flags & (TVHT_ONITEMICON | TVHT_ONITEMLABEL))<br />
    {<br />
        TV_ITEM tvi = {0};<br />
        tvi.hItem = hItem;<br />
        tvi.mask |= TVIF_PARAM;<br />
        TreeView_GetItem(m_ctlSysCtrl.m_hWnd, <br />
&tvi);<br />
        put_Value(tvi.lParam);<br />
        FireOnChanged(DISPID_VALUE);<br />
        FireViewChange();<br />
        SendOnDataChange(NULL);<br />
        bHandled = TRUE;<br />
    }<br />
    else<br />
        bHandled = FALSE;<br />
<br />
    return 0;<br />
}<br />




...Plug & Pray... Dead | X|
GeneralAlign size of ActiveX control Pin
El'Cachubrey20-Apr-04 22:50
El'Cachubrey20-Apr-04 22:50 
GeneralRe: Align size of ActiveX control Pin
Balkrishna Talele20-Apr-04 23:01
Balkrishna Talele20-Apr-04 23:01 
GeneralCoGetObject and Nagging Dialog Pin
Balkrishna Talele20-Apr-04 22:48
Balkrishna Talele20-Apr-04 22:48 
Generalcreating multiple activeX.. Pin
Abhi Lahare20-Apr-04 19:33
Abhi Lahare20-Apr-04 19:33 
GeneralRe: creating multiple activeX.. Pin
Balkrishna Talele20-Apr-04 22:54
Balkrishna Talele20-Apr-04 22:54 
GeneralRe: creating multiple activeX.. Pin
Abhi Lahare21-Apr-04 1:33
Abhi Lahare21-Apr-04 1:33 
GeneralRe: creating multiple activeX.. Pin
Balkrishna Talele21-Apr-04 1:47
Balkrishna Talele21-Apr-04 1:47 
QuestionHow to use a WTL splitter window Pin
Roozbeh6920-Apr-04 10:16
professionalRoozbeh6920-Apr-04 10:16 
AnswerRe: How to use a WTL splitter window Pin
Senkwe Chanda20-Apr-04 22:20
Senkwe Chanda20-Apr-04 22:20 
GeneralActiveX properties in Visual Basic Pin
mikewithersone18-Apr-04 15:28
mikewithersone18-Apr-04 15:28 
GeneralRe: ActiveX properties in Visual Basic Pin
Mike Dimmick19-Apr-04 8:45
Mike Dimmick19-Apr-04 8:45 
GeneralRe: ActiveX properties in Visual Basic Pin
mikewithersone19-Apr-04 14:30
mikewithersone19-Apr-04 14:30 
GeneralRe: ActiveX properties in Visual Basic Pin
Mike Dimmick20-Apr-04 8:24
Mike Dimmick20-Apr-04 8:24 
GeneralRe: ActiveX properties in Visual Basic Pin
mikewithersone20-Apr-04 9:26
mikewithersone20-Apr-04 9:26 
QuestionHow to get key-down message in a WTL combobox? Pin
freehawk15-Apr-04 23:58
freehawk15-Apr-04 23:58 
AnswerRe: How to get key-down message in a WTL combobox? Pin
Jörgen Sigvardsson17-Apr-04 6:16
Jörgen Sigvardsson17-Apr-04 6:16 
AnswerRe: How to get key-down message in a WTL combobox? Pin
Nebojsa Mihajlovic4-May-04 22:52
Nebojsa Mihajlovic4-May-04 22:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.