This message is used to inform the control that you are expecting a behavior associated with a particular version.
The version number.
- Must be zero.
Returns the version specified in the previous CCM_SETVERSION message. If wParam is set to a value greater than the current DLL version, it returns -1.
In a few cases, a control may behave differently, depending on the version. This primarily applies to bugs that were fixed in later versions. The CCM_SETVERSION message enables you to inform the control which behavior is expected. You can determine which version you have specified by sending a CCM_GETVERSION message. For an example of how to use this message, see Custom Draw With List-View and Tree-View Controls.
If you have ComCtl32.dll version 6 installed, regardless of what value you set in wParam, the CCM_SETVERSION message returns version 6.
Note This message only sets the version number for the control to which it is sent.
Minimum supported client
|Windows 2000 Professional [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|