2013年11月25日
摘要: 1,查看表空间使用情况SELECT D.TABLESPACE_NAME, SPACE || 'M' "SUM_SPACE(M)", BLOCKS "SUM_BLOCKS", SPACE - NVL (FREE_SPACE, 0) || 'M' "USED_SPACE(M)", ROUND ( (1 - NVL (FREE_SPACE, 0) / SPACE) * 100, 2) || '%' "USED_RATE(%)", FREE_SPACE || 'M&# 阅读全文
posted @ 2013-11-25 22:06 明月几时有25 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 禁用WPF窗体的最大化按钮可以使用Windows API改变按钮状态的方法实现。使用GetWindowLong可以得到当前按钮的状态。使用SetWindowLong可以设置按钮的状态。使用SetWindowPos进行界面的更新。下面是这几个API的声明。 [DllImport("user32.dll", EntryPoint = "GetWindowLong")] public static extern int GetWindowLong(IntPtr hwnd, int nIndex); [DllImport("user32.dll&quo 阅读全文
posted @ 2013-11-25 21:57 明月几时有25 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: 在WPF中设置窗体的Topmost属性可以将窗体永远置于顶部,但是没有提供Bottommost属性将窗体置底。若果要将窗体置于桌面的最底部,就需要使用Windows API来实现了。解决方案如下:1,引入Windows API[DllImport("user32.dll")] public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X,int Y, int cx, int cy, uint uFlags); public const UInt32 SWP_NOSIZE = 阅读全文
posted @ 2013-11-25 21:53 明月几时有25 阅读(2752) 评论(0) 推荐(1) 编辑
摘要: Windows 常量定义在winuser.h中可以找到,如果了安装了visual studio 2010,winuser.h所在目录为C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include/***************************************************************************** ** winuser.h -- USER ... 阅读全文
posted @ 2013-11-25 21:44 明月几时有25 阅读(5388) 评论(0) 推荐(0) 编辑
摘要: 第一步:插入安装光盘,重光驱启动系统,在选择“安装语言”的地方,按shift+F10在弹出的CMD窗口中,输入以下地址:x:\>c:c:\>cd windows\system32c:\>ren Magnify.exe Magnify1.exec:\>ren cmd.exe Magnify.exec:\>exit以上几步是用命令行替换掉放大境窗口然后重新启动电脑,从硬盘启动第二步:在输入登录密码的地方打开放大镜,会弹出CMD窗口在其它输入:net user administrator Com12345然后关闭窗口输入密码Com12345注意设置密码的时候不要使用特殊 阅读全文
posted @ 2013-11-25 13:16 明月几时有25 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: There is no API to get the total size of a specific directory in the isolated storage. Therefore, the only alternative you have is to browse the files and manually compute the total size.Here is a sample implementation: long total = 0; using (var isolatedStorage = IsolatedStorageFile.GetUserStoreF.. 阅读全文
posted @ 2013-11-25 13:14 明月几时有25 阅读(190) 评论(0) 推荐(0) 编辑