Example #1
0
        public Form1()
        {
            InitializeComponent();

            subClassedForm = new winapi.subclassForm(this);
            subClassedForm.wndProcEvent += new winapi.subclassForm.wndProcEventHandler(subClassedForm_wndProcEvent);
            widthX = this.Width - 2 * offsetX;

            uiCurrentStyle = winapi.getStyle(this);
            uiCurrentStyleEx = winapi.getStyleEx(this);
            System.Diagnostics.Debug.WriteLine("Style  =0x" + string.Format("{0:x}", uiCurrentStyle));
            System.Diagnostics.Debug.WriteLine("StyleEx=0x" + string.Format("{0:x}", uiCurrentStyleEx));
            buildOptions();
            buildOptionsEx();
        }
Example #2
0
        public Form1()
        {
            InitializeComponent();

            subClassedForm = new winapi.subclassForm(this);
            subClassedForm.wndProcEvent += new winapi.subclassForm.wndProcEventHandler(subClassedForm_wndProcEvent);
            widthX = this.Width - 2 * offsetX;

            uiCurrentStyle   = winapi.getStyle(this);
            uiCurrentStyleEx = winapi.getStyleEx(this);
            System.Diagnostics.Debug.WriteLine("Style  =0x" + string.Format("{0:x}", uiCurrentStyle));
            System.Diagnostics.Debug.WriteLine("StyleEx=0x" + string.Format("{0:x}", uiCurrentStyleEx));
            buildOptions();
            buildOptionsEx();
        }