Skip to content

Commit 214c1d6

Browse files
committed
Updates control-properties.md
Auto commit by GitBook Editor
1 parent 5da82dc commit 214c1d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

control-properties.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Control Properties
22

3-
This section and the topics within it should be considered a bit more technical in nature. They cover more in depth the details on the techniques used for defining, allocating memory for, and setting/getting a control's properties.
4-
53
When registering our custom control \(see [Registering Our Control](//registering-our-control.md) for details\), the `cbWndExtra` field of the [WNDCLASSEX](https://msdn.microsoft.com/en-us/library/windows/desktop/ms633577%28v=vs.85%29.aspx) is used for storing additional extra bytes per instance of the control we create.
64

7-
In the early days of my control creation I used these extra storage bytes to store anywhere up to 128 bytes of data to hold various variables used by the control. I came across some documentation later on that suggested there was a limit of 40 bytes in some earlier versions of windows os, and that as the bytes are being allocated from the local system heap, the [RegisterClassEx](https://msdn.microsoft.com/en-us/library/windows/desktop/ms633587%28v=vs.85%29.aspx) function might fail if greater than 40 bytes is requested - [https://msdn.microsoft.com/en-us/library/ms633574\(VS.85\).aspx\#extra\_window\_memory](https://msdn.microsoft.com/en-us/library/ms633574%28VS.85%29.aspx#extra_window_memory)
5+
In the early days of my control creation I used these extra storage bytes to store anywhere up to 128 bytes of data to hold various variables used by the control. I came across some documentation later on that suggested there was a limit of 40 bytes in some earlier versions of windows os, and that as the bytes are being allocated from the local system heap, the [RegisterClassEx](https://msdn.microsoft.com/en-us/library/windows/desktop/ms633587%28v=vs.85%29.aspx) function might fail if greater than 40 bytes is requested:
86

97
> Extra Window Memory
108
>

0 commit comments

Comments
 (0)