02 2016 档案
摘要:1、 类似如下代码: 1 QString fileName = QFileDialog::getOpenFileName( 2 this, 3 tr("Open File"), 4 NULL,// ".", 5 tr("*.*")); 2、
阅读全文
摘要:可以通过以下方式来获取: 1、 #include <QDir>#include <QDebug> QDir dir; qDebug() << "currentPath : "+dir.currentPath(); 2、 QApplication::applicationFilePath(); QCo
阅读全文
摘要:#include <string> #include <vector> #include <deque> #include <queue> #include <stack> #include <list> #include <set> #include <map> #include <algorit
阅读全文
摘要:PS: 代码参考于<<Windows环境下32位汇编语言程序设计.chm>>,第5章,"5.4 对 话 框(2)" 。 ZC: 与CreateWindow(Ex)相比,优点在于:(1)、窗口内容 所见即所得,(2)、写一个基本窗口所用的代码比CreateWindow(Ex)少(只需要写消息回调函数)
阅读全文
摘要:1、 1 #include <windows.h> 2 3 4 LRESULT CALLBACK ProcWindow(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); 5 void QuitWindow(); 6 7 HINSTANCE g_
阅读全文