摘要:
1. Write native(unmanaged) code with C/C++, and make sure compile it as a DLL, the sample is as below#include using namespace std;extern "C"{ _decls... 阅读全文
摘要:
1.FileStream.Writestring filePath = Directory.GetCurrentDirectory() + "\\" + Process.GetCurrentProcess().ProcessName + ".txt"; if (File.Exi... 阅读全文
摘要:
第一种,手工移动。该方法根据鼠标位置实现窗体的移动。网上有很多相关的例子,这里不再多讲。第二种,调用系统API原理:是当鼠标左键按下时,让系统认为是在标题栏按下的。这里我们用到了winapi里的WM_LBUTTONDOWN(客户区鼠标左键按下,值:0x0201)和WM_NCLBUTTONDOWN(非... 阅读全文