You see when one shall design a .ico file, numerous layers must be made so the most suitable can be selected by default based on where they are used (Desktop, file explorer etc)
http://skyboygames.com/easily-create-a-windows-app-icon-with-gimp/
Perhaps in your icon, the system has chosen the most suitable layer from the sets and sets of sizes in your graphic, in other words. You don't set the dimensions, the system does appropriately
Vilch,
yes , thanks.
" the system does appropriately "
ok. But if I do not fill out width an height, I get an error.
And the x and y position does work.
So there is no problem, it works but it is strange. Not filling in parameters, ""functions"" usaually do not like
Coding does this, in my framework I must always finish of an action sequence with nullptr or NULL or We must accept these little additional elements of programs and move on. Otherwise, is your icon's size and shape fine when it is actually used as an icon?
auto Action = Sequence::create(action, action->reverse(), nullptr);
The style ignores the CreateWindow parameters nWidth and nHeight; the control automatically sizes itself to accommodate the icon. As it uses the LoadIcon function, the SS_ICON style can load only icons of dimensions SM_CXICON and SM_CYICON. This restriction can be bypassed by using the SS_REALSIZEIMAGE style in addition to SS_ICON.