Hello,
I want to programmatically double-click a ListView Item in my ListView under
WinCE 3.0.

In C++ the NM_DBLCLK is defined to be (NM_FIRST-3) NM_FIRST being (0U- 0U).
I am not sure what the U stands for and how to interpret it in eVB and
therefore I defined NM_DBLCLK in eVB as "Public Const NM_DBLCKL = -3). I
also define WM_NOTIFY as Public Const WM_NOTIFY = &H4E. I defined NM_CLICK
as Public Const NM_CLICK = -2

After I get my ListViewCtrl Handle I call SendNotifyMessage(hListView,
WM_NOTIFY, NM_CLICK, 0). Ofcourse I get an error! Error Value being 120
which is ERROR_CALL_NOT_IMPLEMENTED meaning "This function is not supported
on this system". Does this mean that one cannot change any ListView
properties under WinCE 3.0? Or does it mean that I am doing something
completely incorrect?

If I can get NM_CLICK to work I think NM_DBLCLK will also work.

Help!
Sami

Re: URGENT: Sending a NM_DBLCLK Message in the form of WM_NOTIFY with SendNotifyMessage( ) function from eVB. by Jeff

Jeff
Fri Aug 01 08:41:40 CDT 2003

U is a suffix indicating that the number should be treated as unsigned.

Aside from that, the way you're sending the message is wrong. With
WM_NOTIFY/NM_CLICK, the WPARAM should be the listview's control ID, and the
LPARAM should be a pointer to a NMITEMACTIVATE structure, at least some of
which you have to fill before calling SendNotifyMessage.


"Sami" <sami_islam@hotmail.com> wrote in message
news:ONLqFVBWDHA.1620@TK2MSFTNGP12.phx.gbl...
> Hello,
> I want to programmatically double-click a ListView Item in my ListView
under
> WinCE 3.0.
>
> In C++ the NM_DBLCLK is defined to be (NM_FIRST-3) NM_FIRST being (0U-
0U).
> I am not sure what the U stands for and how to interpret it in eVB and
> therefore I defined NM_DBLCLK in eVB as "Public Const NM_DBLCKL = -3). I
> also define WM_NOTIFY as Public Const WM_NOTIFY = &H4E. I defined NM_CLICK
> as Public Const NM_CLICK = -2
>
> After I get my ListViewCtrl Handle I call SendNotifyMessage(hListView,
> WM_NOTIFY, NM_CLICK, 0). Ofcourse I get an error! Error Value being 120
> which is ERROR_CALL_NOT_IMPLEMENTED meaning "This function is not
supported
> on this system". Does this mean that one cannot change any ListView
> properties under WinCE 3.0? Or does it mean that I am doing something
> completely incorrect?
>
> If I can get NM_CLICK to work I think NM_DBLCLK will also work.
>
> Help!
> Sami
>
>



Re: URGENT: Sending a NM_DBLCLK Message in the form of WM_NOTIFY with SendNotifyMessage( ) function from eVB. by Sami

Sami
Fri Aug 01 09:43:59 CDT 2003

Hello

There is no NMITEMACTIVATE struct under Windows CE 3.0.

Sami
"Jeff Henkels" <jeff@mapson.privatemail.com> schrieb im Newsbeitrag
news:ORBDlKDWDHA.216@TK2MSFTNGP11.phx.gbl...
> U is a suffix indicating that the number should be treated as unsigned.
>
> Aside from that, the way you're sending the message is wrong. With
> WM_NOTIFY/NM_CLICK, the WPARAM should be the listview's control ID, and
the
> LPARAM should be a pointer to a NMITEMACTIVATE structure, at least some of
> which you have to fill before calling SendNotifyMessage.
>
>
> "Sami" <sami_islam@hotmail.com> wrote in message
> news:ONLqFVBWDHA.1620@TK2MSFTNGP12.phx.gbl...
> > Hello,
> > I want to programmatically double-click a ListView Item in my ListView
> under
> > WinCE 3.0.
> >
> > In C++ the NM_DBLCLK is defined to be (NM_FIRST-3) NM_FIRST being (0U-
> 0U).
> > I am not sure what the U stands for and how to interpret it in eVB and
> > therefore I defined NM_DBLCLK in eVB as "Public Const NM_DBLCKL = -3). I
> > also define WM_NOTIFY as Public Const WM_NOTIFY = &H4E. I defined
NM_CLICK
> > as Public Const NM_CLICK = -2
> >
> > After I get my ListViewCtrl Handle I call SendNotifyMessage(hListView,
> > WM_NOTIFY, NM_CLICK, 0). Ofcourse I get an error! Error Value being 120
> > which is ERROR_CALL_NOT_IMPLEMENTED meaning "This function is not
> supported
> > on this system". Does this mean that one cannot change any ListView
> > properties under WinCE 3.0? Or does it mean that I am doing something
> > completely incorrect?
> >
> > If I can get NM_CLICK to work I think NM_DBLCLK will also work.
> >
> > Help!
> > Sami
> >
> >
>
>



Re: URGENT: Sending a NM_DBLCLK Message in the form of WM_NOTIFY with SendNotifyMessage( ) function from eVB. by Jeff

Jeff
Fri Aug 01 15:36:41 CDT 2003

OK -- then it's a NMLISTVIEW struct, which is almost identical to
NMITEMACTIVATE.

"Sami" <sami_islam@hotmail.com> wrote in message
news:etYXFsDWDHA.2568@tk2msftngp13.phx.gbl...
> Hello
>
> There is no NMITEMACTIVATE struct under Windows CE 3.0.
>
> Sami
> "Jeff Henkels" <jeff@mapson.privatemail.com> schrieb im Newsbeitrag
> news:ORBDlKDWDHA.216@TK2MSFTNGP11.phx.gbl...
> > U is a suffix indicating that the number should be treated as unsigned.
> >
> > Aside from that, the way you're sending the message is wrong. With
> > WM_NOTIFY/NM_CLICK, the WPARAM should be the listview's control ID, and
> the
> > LPARAM should be a pointer to a NMITEMACTIVATE structure, at least some
of
> > which you have to fill before calling SendNotifyMessage.
> >
> >
> > "Sami" <sami_islam@hotmail.com> wrote in message
> > news:ONLqFVBWDHA.1620@TK2MSFTNGP12.phx.gbl...
> > > Hello,
> > > I want to programmatically double-click a ListView Item in my ListView
> > under
> > > WinCE 3.0.
> > >
> > > In C++ the NM_DBLCLK is defined to be (NM_FIRST-3) NM_FIRST being (0U-
> > 0U).
> > > I am not sure what the U stands for and how to interpret it in eVB and
> > > therefore I defined NM_DBLCLK in eVB as "Public Const NM_DBLCKL = -3).
I
> > > also define WM_NOTIFY as Public Const WM_NOTIFY = &H4E. I defined
> NM_CLICK
> > > as Public Const NM_CLICK = -2
> > >
> > > After I get my ListViewCtrl Handle I call SendNotifyMessage(hListView,
> > > WM_NOTIFY, NM_CLICK, 0). Ofcourse I get an error! Error Value being
120
> > > which is ERROR_CALL_NOT_IMPLEMENTED meaning "This function is not
> > supported
> > > on this system". Does this mean that one cannot change any ListView
> > > properties under WinCE 3.0? Or does it mean that I am doing something
> > > completely incorrect?
> > >
> > > If I can get NM_CLICK to work I think NM_DBLCLK will also work.
> > >
> > > Help!
> > > Sami
> > >
> > >
> >
> >
>
>



Re: URGENT: Sending a NM_DBLCLK Message in the form of WM_NOTIFY with SendNotifyMessage( ) function from eVB. by Jeff

Jeff
Mon Aug 04 14:17:12 CDT 2003

I'm not familiar with SendNotifyMessage -- what differentiates it from
SendMessage? Other than that, nothing jumps out at me.

"Sami" <sami_islam@hotmail.com> wrote in message
news:uFSc2joWDHA.2880@tk2msftngp13.phx.gbl...
> Hello Jeff,
>
> Here is my code:
> ********************
> iListViewID = ::GetDlgCtrlID(hListView);
> NMHDR nmHdr;
> NMLISTVIEW nmListView;
>
> nmHdr.hwndFrom = hListView;
> nmHdr.idFrom = iListViewID;
> nmHdr.code = NM_DBLCLK;
>
> nmListView.hdr = nmHdr;
> nmListView.iItem = 0;
> nmListView.iSubItem = 0;
>
>
> bResult = ::SendNotifyMessage(hListView, WM_NOTIFY, nmHdr.idFrom,
> (LPARAM)&nmListView);
> if (bResult == 0) // I get a 0 Result
> dwErrVal = ::GetLastError(); // but then I also get a dwErrVal of
0???
> ***********************
>
> Can you tell me what I am doing wrong?
> Thanks,
> Sami
>
> "Jeff Henkels" <jeff@mapson.privatemail.com> schrieb im Newsbeitrag
> news:#laqeyGWDHA.2272@TK2MSFTNGP11.phx.gbl...
> > OK -- then it's a NMLISTVIEW struct, which is almost identical to
> > NMITEMACTIVATE.
> >
> > "Sami" <sami_islam@hotmail.com> wrote in message
> > news:etYXFsDWDHA.2568@tk2msftngp13.phx.gbl...
> > > Hello
> > >
> > > There is no NMITEMACTIVATE struct under Windows CE 3.0.
> > >
> > > Sami
> > > "Jeff Henkels" <jeff@mapson.privatemail.com> schrieb im Newsbeitrag
> > > news:ORBDlKDWDHA.216@TK2MSFTNGP11.phx.gbl...
> > > > U is a suffix indicating that the number should be treated as
> unsigned.
> > > >
> > > > Aside from that, the way you're sending the message is wrong. With
> > > > WM_NOTIFY/NM_CLICK, the WPARAM should be the listview's control ID,
> and
> > > the
> > > > LPARAM should be a pointer to a NMITEMACTIVATE structure, at least
> some
> > of
> > > > which you have to fill before calling SendNotifyMessage.
> > > >
> > > >
> > > > "Sami" <sami_islam@hotmail.com> wrote in message
> > > > news:ONLqFVBWDHA.1620@TK2MSFTNGP12.phx.gbl...
> > > > > Hello,
> > > > > I want to programmatically double-click a ListView Item in my
> ListView
> > > > under
> > > > > WinCE 3.0.
> > > > >
> > > > > In C++ the NM_DBLCLK is defined to be (NM_FIRST-3) NM_FIRST being
> (0U-
> > > > 0U).
> > > > > I am not sure what the U stands for and how to interpret it in eVB
> and
> > > > > therefore I defined NM_DBLCLK in eVB as "Public Const NM_DBLCKL
> = -3).
> > I
> > > > > also define WM_NOTIFY as Public Const WM_NOTIFY = &H4E. I defined
> > > NM_CLICK
> > > > > as Public Const NM_CLICK = -2
> > > > >
> > > > > After I get my ListViewCtrl Handle I call
> SendNotifyMessage(hListView,
> > > > > WM_NOTIFY, NM_CLICK, 0). Ofcourse I get an error! Error Value
being
> > 120
> > > > > which is ERROR_CALL_NOT_IMPLEMENTED meaning "This function is not
> > > > supported
> > > > > on this system". Does this mean that one cannot change any
ListView
> > > > > properties under WinCE 3.0? Or does it mean that I am doing
> something
> > > > > completely incorrect?
> > > > >
> > > > > If I can get NM_CLICK to work I think NM_DBLCLK will also work.
> > > > >
> > > > > Help!
> > > > > Sami
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>