Home > Software engineering >  Ask: LVM_ and HDM_ what meaning be?
Ask: LVM_ and HDM_ what meaning be?

Time:10-04

See a "the content" in the process of how to obtain other ListView control, there are:

//listview column head handle
Headerhwnd=: : SendMessage (hListview, LVM_GETHEADER , 0, 0);

//total number: the number of process
Rows=: : SendMessage (hListview, LVM_GETITEMCOUNT , 0, 0);

//list the number of columns
Cols=: : SendMessage (hListview, HDM_GETITEMCOUNT , 0, 0);

Is above the red LVM_ ListView Messages, HDM_ is the Header Messages mean?

Thank you very much!!!!!!

CodePudding user response:

Congratulations to you, ask themselves from a

CodePudding user response:

reference 1st floor ZWFGDLC response:
congratulations, the answer will ask


Whether or not?
CVirtualGridCtrl to get the number of rows, if so, that is not a SendMessage a VTG_GETITEMCOUNT?
Thank you for your reply!!!!!!

CodePudding user response:

No VTG_GETITEMCOUNTP this message, or use LVM_GETITEMCOUNT

CodePudding user response:

reference ZWFGDLC reply: 3/f
no VTG_GETITEMCOUNTP this message, or use LVM_GETITEMCOUNT


The teacher, LVM_GETITEMCOUNT not CVirtualGridCtrl ranks number!
Indeed GETITEMCOUNT VTG_, VTGM_ and VGM_ errors,

Please advice the teacher,
Thank you very much!!!!!!

CodePudding user response:

The window handle of the number of columns should be HeadWnd

: : SendMessage (headerhwnd HDM_GETITEMCOUNT

CodePudding user response:

reference 5 floor zgl7903 reply:
the window handle of the number of columns should be HeadWnd

: : SendMessage (headerhwnd, HDM_GETITEMCOUNT


The HWND=(HWND) : : FindWindow (NULL, _T (" VirtualGridCtrl Demo "));
//HWND=(HWND) : : FindWindowEx (HWND, 0, _T (" CVirtualGridCtrl "), NULL);
//process interface window handle, obtained by SPY
HVG=(HWND) : : FindWindowEx (HWND, 0, _T (" CVirtualGridCtr l "), NULL);

//column head handle
Headerhwnd=: : SendMessage (hVG, LVM_GETHEADER, 0, 0);// not

//total number of rows
Rows=: : SendMessage (hVG, LVM_GETITEMCOUNT, 0, 0);// can't get the number of rows
//list the number of columns
Cols=: : SendMessage (hVG, HDM_GETITEMCOUNT, 0, 0);// not

CodePudding user response:

LVM_
HDM message is for the system's built-in ListView control,
Other controls to see whether they support the messages

CodePudding user response:

refer to 7th floor zgl7903 response:
LVM_
HDM message is for the system's built-in ListView control,
Other controls to see whether they support the message


How to know a certain control support what news?

Thank you very much!!!!!!

CodePudding user response:

refer to the eighth floor u010302092 response:
Quote: refer to 7th floor zgl7903 response:

LVM_
HDM message is for the system's built-in ListView control,
Other controls to see whether they support the message


How to know a certain control support what news?

Thank you very much!!!!!!

Query the MSDN documentation

CodePudding user response:

references 9 f VisualEleven response:
Quote: refer to the eighth floor u010302092 response:

Quote: refer to 7th floor zgl7903 response:

LVM_
HDM message is for the system's built-in ListView control,
Other controls to see whether they support the message


How to know a certain control support what news?

Thank you very much!!!!!!

Query the MSDN documentation


Thank you moderator counsel!!!!!!

What are the key is the third time controls how to know the news, such as the above mentioned CVirtualGridCtrl?

CodePudding user response:

XXM_ said M essage
So the LVM is ListView (MFC called ListCtrl, W32 called ListView) Message

CodePudding user response:

Similar
XXS_ is Style
XXN_ Notify

CodePudding user response:

refer to 12 floor schlafenhamster reply:

similarXXS_ is Style
XXN_ Notify


Thank you for your reply!!!!!!

I am want to get data from CVirtualGridCtrl sendmessage, what to send a message?

CodePudding user response:

http://blog.csdn.net/gdhuman/article/details/2678139

CodePudding user response:

http://download.csdn.net/download/CHENJINHUACHAO/1282174

CodePudding user response:

Learn how to use Spy++

CodePudding user response:

On the 14th floor schlafenhamster
reference response:
http://blog.csdn.net/gdhuman/article/details/2678139


This article was written by DELPHI, I have seen, but I don't understand DELPHI,

And thank you for your enthusiastic guidance!!!!!!

CodePudding user response:

You use spy++ CVirtualGridCtrl class name is
"SysHeader32
""SysListView32
"If is similar CListCtrl,
The following example is found after RemoteListCtrl, read the contents of the item:
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related