摘要:
//主要两个步骤://第一个步骤就是在CMainFrame::OnCreate里面增加 HINSTANCE hInst = LoadLibrary(_T("UxTheme.dll")); if (hInst) { typedef HRESULT (WINAPI *PFUN_SetWindowTheme)(HWND, LPCTSTR, LPCTSTR); PFUN_SetWindowTheme pFun = (PFUN_SetWindowTheme)GetProcAddress(hInst, "SetWindowTheme"); if (p... 阅读全文
摘要:
MouseHook.dllMouseHook.h#pragma once/*global*/ extern DWORD g_dwThreadId; extern HINSTANCE g_Hinstance; extern HHOOK g_MouseHook; extern POINT g_ptOld;/*define*/#define WM_MOUSEMOVE_ALL WM_USER+1000/*export*/ extern "C" __declspec(dllexport) BOOL SetHook(DWORD dwThreadId); LRESULT CALLBACK 阅读全文
摘要:
DllTest工程QMath.h#pragma once#ifdef API_EXPORT#define DLL_CLASS __declspec(dllexport)#define DLL_API extern "C" __declspec(dllexport)#else#define DLL_CLASS __declspec(dllimport)#define DLL_API extern "C" __declspec(dllimport)#endifDLL_API int Add(int a, int b);DLL_API int Sub(int 阅读全文
该文被密码保护。 阅读全文
摘要:
Button.h#pragma once// QButtonclass QButton : public CButton{ DECLARE_DYNAMIC(QButton)// Constructionpublic: QButton(); //Attributesprotected: //The outside border of the button CPen m_penBoundry; //When the mouse pointer above button button inside the frame CPen m_penInsideBoun... 阅读全文