-
Very Frustrated - Control ID's
I normally draw controls in VC++ by using the resource editor. Any messages
from these controls are handled via Class Wizard. No worries.
I have a need to create a CListCtrl using the ::Create function, not drawing
it as I normally would in the resource editor.
I can create the control. No problem. But I want the control to respond to
mouse-double-clicks. How do I do that?
I'm going crazy thinking about it. And it's holding me up more that it should.
Thanks
-
Re: Very Frustrated - Control ID's
"Greg Horwood" <g.horwood@walter.net.au> wrote:
>
>I normally draw controls in VC++ by using the resource editor. Any messages
>from these controls are handled via Class Wizard. No worries.
>I have a need to create a CListCtrl using the ::Create function, not drawing
>it as I normally would in the resource editor.
>I can create the control. No problem. But I want the control to respond
to
>mouse-double-clicks. How do I do that?
>I'm going crazy thinking about it. And it's holding me up more that it should.
>Thanks
Hi,
I know little about VC++ but I can tell you that the CListCtrl object would
have an OnClick property which is a pointer to an event handler for the on_click
event.
To find out the exact arguments given to the on_click event look at your
doco or look at some previous event handlers you've written.
You should be able to assign the function (you may have to cast it though)
to the OnClick property of the CListCtrl object.
Hope that helps,
Kent
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|