well know,there have some member in the WNDCLASSEX,such as
lpfnWndProc,hIcon,i know "lp" represent to long pointer,"h" represent
to handle.but what does "cb" in cbSize represent to.
thank u for tell me.
lpfnWndProc,hIcon,i know "lp" represent to long pointer,"h" represent
to handle.but what does "cb" in cbSize represent to.
thank u for tell me.
iirc bc is bit or byte count :), you should see a dissasembly moving the size for whatch if is a byte or bits count... also i go more for bits count .... in some way.
From MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windowclasses/windowclassreference/windowclassstructures/wndclassex.asp
WNDCLASSEX Structure
UINT = unsigned int = DWORD
I believe 'cb' stands for 'count in bytes'.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windowclasses/windowclassreference/windowclassstructures/wndclassex.asp
WNDCLASSEX Structure
typedef struct {
UINT cbSize;
UINT style;
WNDPROC lpfnWndProc;
int cbClsExtra;
int cbWndExtra;
HINSTANCE hInstance;
HICON hIcon;
HCURSOR hCursor;
HBRUSH hbrBackground;
LPCTSTR lpszMenuName;
LPCTSTR lpszClassName;
HICON hIconSm;
} WNDCLASSEX, *PWNDCLASSEX;
UINT = unsigned int = DWORD
I believe 'cb' stands for 'count in bytes'.