Is BUTTON a common control?

The INITCOMMONCONTROLSEX documentation states the following:

ICC_STANDARD_CLASSES

Download one of the User32 built-in management classes. User control include button, edit, static, listbox, combobox and scroll bar.

I don’t understand what this means, are the buttons "button", "edit", "static", "listbox", combobox "public"?


I think the following is explained for this:

There are two versions of these controls, one version is in user32.dll and the other version is in comctl32.dll, now when I use Visual Styles (by adding a manifest file to my program), the version used will be comctl32.dll, and if I used Visual Styles, then I would have to call InitCommonControlsEx () using ICC_STANDARD_CLASSES .

Is it correct?

+5
source share
1 answer

In the old days, before XP themes, a distinction was made between the standard basic user32 controls. Button, edit, static, list and combo box. Back in earlier versions of Windows is all that was.

Later, general controls appeared. List view, tree structure, toolbar, status bar, progress bar, timing, etc. You should have called InitCommonControls to initialize these controls.

With the advent of XP themes, you now need to call InitCommonControlsEx to register all the controls, even standard controls like a button, edit, etc. But I do not consider them ordinary control. For me, there is a distinction between the main controls, button, editing, etc., as well as general controls, list view, tree view, etc. However, this is not a very important difference. You do not need to worry about it.

+3
source

Source: https://habr.com/ru/post/1234412/


All Articles