ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
WM_NCCALCSIZE
is sent before the edit control is subclassed.EDIT
class.SetWindowPos
with SWP_FRAMECHANGED
, this causes it to send the WM_NCCALCSIZE
message. ncc1.rgrc(0) is the new rectangle
ncc1.rgrc(1) is the old rectangle
ncc1.rgrc(2) is the client rectangle
Width : ncc1.ncc1.lppos.x , Height : ncc1.lppos.y
W=Left-Right
W=349-9=340
Dim rrr As RECT
CopyMemory rrr, ByVal lParam, LenB(rrr)
SetWindowtext : rrr.Right
WS_EX_CLIENTEDEGE
2 Pixle Wide 'test
to draw on the parent DC, WS_CLIPCHILDREN must be off
HWND h