کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

به اشتراک گذاری اطلاعات کسب شده در اکسس از سایت آفیس و سایت های تخصصی خارجی
کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

به اشتراک گذاری اطلاعات کسب شده در اکسس از سایت آفیس و سایت های تخصصی خارجی

WM_NCCALCSIZE



Figured it out, WM_NCCALCSIZE is sent before the edit control is subclassed.
So i had to superclass the EDIT class.

EDIT:
Another solution I just thought of would be to subclass it, then call 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



NonClientArea





نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد