码迷,mamicode.com
首页 >  
搜索关键字:hinstance    ( 198个结果
C++控制程序只运行一个实例
1 int APIENTRY WinMain(HINSTANCE hInstance, 2 HINSTANCE hPrevInstance, 3 LPSTR lpCmdLine, 4 ...
分类:编程语言   时间:2015-08-11 18:04:41    阅读次数:134
鼠标的应用示例
1 #include 2 #include 3 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 4 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 5 ...
分类:其他好文   时间:2015-08-09 12:26:05    阅读次数:161
字体及位置示例
1 #include 2 #include 3 #include 4 #define PI 3.1415926 5 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 6 LRESULT CALLBACK Wnd...
分类:其他好文   时间:2015-08-08 21:17:23    阅读次数:117
用CreateWindow()创建的主窗体如何添加背景图片
#include?<windows.h> ??HDC?hdc,?hdcMem; ??HBITMAP?hBmp; ??BITMAP?bmp; ??HINSTANCE?hCurInst;//当前应用程序句柄 hdc?=?BeginPaint(hWnd,?&ps);; hdcMem?=?CreateCompatibleDC(hdc); Sele...
分类:Windows程序   时间:2015-08-08 20:04:58    阅读次数:250
模拟时钟
1 #include 2 #include 3 #include 4 typedef struct Time 5 { 6 int hour, min, sec; 7 }TimeStructure; 8 BOOLEAN InitWindowClass(HINSTANCE...
分类:其他好文   时间:2015-08-07 23:44:36    阅读次数:229
柱形图及饼图显示数据统计
1 #include 2 #include 3 #include 4 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 5 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM,...
分类:其他好文   时间:2015-08-07 18:40:14    阅读次数:129
利用绘图函数创建填充区
1 #include 2 #include 3 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 4 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 5 ...
分类:其他好文   时间:2015-08-07 00:05:25    阅读次数:184
获取CAD安装路径
bool GetAcadPath(CString &acadPath){DWORD dwRet=:GetModuleFileName(acedGetAcadWinApp()->m_hInstance,acadPath.GetBuffer(_MAX_PATH),_MAX_PATH);acadPath....
分类:其他好文   时间:2015-07-31 17:38:16    阅读次数:154
线程局部存储(TLS)
下例示范如何设定DLL,使之支持TLS. #include //This is the shared slot static DWORD gdwTlsSlot; BOOL DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID lpReserved) { LPVOID lpData; UNREFERENCED_PARAMETER(hin...
分类:编程语言   时间:2015-07-31 13:02:34    阅读次数:114
hello-win程序入门win32基本窗口框架全解析
在VC++6.0环境中创建win32程序 选择第三个这时可以运行看到hello world了。 程序解析: #define MAX_LOADSTRING 100  \\定义最大字长 HINSTANCE hInst; \\当前进程资源的句柄 TCHAR szTitle[MAX_LOADSTRING];   \\窗口上方显示的标题 TCHAR szWind...
分类:Windows程序   时间:2015-07-24 12:52:27    阅读次数:189
198条   上一页 1 ... 8 9 10 11 12 ... 20 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!