-
July 15th, 2019, 11:58 AM
#1
ListView message
Hi,
On this page I couldn't find a message that corresponds to user double-clicking on the header divider.
This event should correspond to the column being auto-sized.
Should I try to catch the HDN_DIVIDERDBLCLICK (header notification) instead of some ListView notification/message? Or I am just missing something?
Thank you.
-
July 15th, 2019, 01:29 PM
#2
Re: ListView message
 Originally Posted by OneEyeMan
Hi,
On this page I couldn't find a message that corresponds to user double-clicking on the header divider.
This event should correspond to the column being auto-sized.
The link you've provided shows the List control messages while you seem to need the List control notifications.
Well. it is not a problem in your case...
 Originally Posted by OneEyeMan
Hi,
On this page I couldn't find a message that corresponds to user double-clicking on the header divider.
This event should correspond to the column being auto-sized.
Should I try to catch the HDN_DIVIDERDBLCLICK (header notification) instead of some ListView notification/message? Or I am just missing something?
Yes, HDN_DIVIDERDBLCLICK
Notifies a header control's parent window that the user double-clicked the divider area of the control. This notification code is sent in the form of a WM_NOTIFY message.
Victor Nijegorodov
-
July 16th, 2019, 01:10 AM
#3
Re: ListView message
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++17 Compiler: Microsoft VS2019 (16.4.0)
-
July 16th, 2019, 07:39 AM
#4
Re: ListView message
had been writing methods directly in the code editor, but on a hunch I decided to double click the listview on the form designer, let it produce the pre-made method bit, then change the code there.
-
July 17th, 2019, 10:58 PM
#5
Re: ListView message
 Originally Posted by amyacker
had been writing methods directly in the code editor, but on a hunch I decided to double click the listview on the form designer, let it produce the pre-made method bit, then change the code there.
That's the way to do it. Back in the day, that functionality was in something called the Class Wizard.
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
|
Click Here to Expand Forum to Full Width
On-Demand Webinars (sponsored)
|