Did some tests on standard and super-classed standard controls right
after creation with:
..with interesting results. BUTTON controls already has 8 bytes allocated,
COMBOBOX 2 bytes, etc. When Super classing them, one often want to add a
few bytes to cbWndExtra for own purposes, but since MS obviously already
use some of it and also say we should not set cbWndExtra to more than 40
extra bytes - then how safe is it to add anything extra at all?
I mean, what if MS starts using up those 40 bytes itself in later versions
of Windows? Maybe adding to cbWndExtra should be avoided with super-classed
controls? Or maybe I simply have been sitting here too long and my mind has
started seeing ghosts in every corner of Windows..
------------------
after creation with:
Code:
MSGBOX STR$( GetClassLong(hCtrl, %GCL_CBWNDEXTRA) )
COMBOBOX 2 bytes, etc. When Super classing them, one often want to add a
few bytes to cbWndExtra for own purposes, but since MS obviously already
use some of it and also say we should not set cbWndExtra to more than 40
extra bytes - then how safe is it to add anything extra at all?
I mean, what if MS starts using up those 40 bytes itself in later versions
of Windows? Maybe adding to cbWndExtra should be avoided with super-classed
controls? Or maybe I simply have been sitting here too long and my mind has
started seeing ghosts in every corner of Windows..
------------------
Comment