13 引用WINAPI



        [System.Runtime.InteropServices.DllImport("user32.dll"EntryPoint = "SetWindowPos")]
        public static extern int SetWindowPos(int hwndint hWndInsertAfterint xint yint cxint cyint wFlags);
     
        const int HWND_TOP =0;
        const int HWND_TOPMOST  = -1;
        const int SWP_NOSIZE = 0x0001;
        const int SWP_NOMOVE = 0x0002;
        const int SWP_SHOWWINDOW = 0x0040;

        private void Form1_Load(object senderEventArgs e)
        {
            SetWindowPos(this.Handle.ToInt32(), HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW);
         }


如何查看变量的值
变量创建一个MFC程序 然后转到定义查看数值




posted @ 2014-05-31 06:39  XE2011  阅读(262)  评论(0编辑  收藏  举报