CListCtrl - Using the clipboard with the item labels
Steve Lewis -- Steve@netvoyage.com
Thursday, March 20, 1997
Environment: MSVC 4.2b, Windows95, NT 4
I'm using a CListCtrl in a project, but I'm having a problem with the
label editing.
The label editing works great, but clipboard functions to cut,copy or
paste text are not working. I've compared my code with some of the
sample code from the CD that uses CListCtrl, and I can't see any
differences that would cause this behavior. Any ideas of what I need to
look at to find the problem?
Thanks
Steve Lewis
steve@netvoyage.com
Paul Gerhart -- pgerhart@voicenet.com
Sunday, March 23, 1997
[Mini-digest: 2 responses]
Steve Lewis wrote:
>
> Environment: MSVC 4.2b, Windows95, NT 4
>
> I'm using a CListCtrl in a project, but I'm having a problem with the
> label editing.
> The label editing works great, but clipboard functions to cut,copy or
> paste text are not working. I've compared my code with some of the
> sample code from the CD that uses CListCtrl, and I can't see any
> differences that would cause this behavior. Any ideas of what I need to
> look at to find the problem?
>
> Thanks
> Steve Lewis
> steve@netvoyage.com
A wild guess but... "how about accelerator keys?"
--
#########################
# Paul Gerhart #
# pgerhart@voicenet.com #
#########################
-----From: Amir Shoval
Hi,
You haven't stated where r u using the CListCtrl, and how r u sending
the edit commands to your application. But one cause to the your problem
could be that u have accelerators for the edit commands common
shortcuts, and
that your applications handle those commands differently.
If this is the case, simply check (when handling the edit commands)
whether
you are editing a label or editing your stuff, and call the correct
methods for
each case.
>----------
>From: Steve Lewis[SMTP:Steve@netvoyage.com]
>Sent: =E9=E5=ED =E7=EE=E9=F9=E9 20 =EE=F8=F5 1997 22:52
>To: 'MFC-L'
>Subject: CListCtrl - Using the clipboard with the item labels
>
>Environment: MSVC 4.2b, Windows95, NT 4
>
>I'm using a CListCtrl in a project, but I'm having a problem with the
>label editing.
>The label editing works great, but clipboard functions to cut,copy or
>paste text are not working. I've compared my code with some of the
>sample code from the CD that uses CListCtrl, and I can't see any
>differences that would cause this behavior. Any ideas of what I need =
to
>look at to find the problem?
>
>Thanks
>Steve Lewis
>steve@netvoyage.com
>
>
Become an MFC-L member
| Вернуться в корень Архива
|