创建一个标签CreateWindowEx(0,"static","姓名:",WS_CHILD|WS_VISIBLE|SS_NOTIFY,12,//xpos414,//ypos90,//width21,//heighthwnd_frame,(HMENU)id_lbl_name,g_hInstance,...
#include int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR ipCmdLine,int nShowCmd){LARGE_INTEGER a,b; a.QuadPart = 100; a.QuadPart ...
分类:
其他好文 时间:
2015-06-12 11:34:47
阅读次数:
94
1 #include "stdafx.h" 2 3 int APIENTRY WinMain(HINSTANCE hInstance, 4 HINSTANCE hPrevInstance, 5 LPSTR ...
分类:
其他好文 时间:
2015-06-11 00:04:41
阅读次数:
189
ChromiumFrame的入口函数在main.cpp中,打开main.cpp.中包含3个类和_tWinMain函数。_tWinMain就是我们要找的入口函数。我做了部分注释: 1 int APIENTRY _tWinMain(HINSTANCE hInstance, 2 ...
分类:
其他好文 时间:
2015-06-08 13:17:27
阅读次数:
149
#include ".\opencsp_authui.h"
#include ".\resource.h"extern HINSTANCE g_hModule; // 当前实例MY_DATA_BLOB OPENCSP_AuthUI::_authData; //MY_DATA_BLOB二进制容器INT_PTR OPENCSP_AuthUI::showAuthUI()
{//在3...
分类:
其他好文 时间:
2015-06-06 09:16:10
阅读次数:
134
上篇文章分析到了定时器的定义,这篇的重点就是定时器是如何运行起来的。
1.从main中寻找定时器的回调
讲定时器的运行,就不得不触及到cocos2dx的main函数了,因为定时器是主线程上运行的,并不是单独线程的,所以它的调用必然会在main函数中,每帧调用。
以下代码就是win32平台下的main函数
int APIENTRY _tWinMain(HINSTANCE hInstance,...
分类:
其他好文 时间:
2015-06-05 21:18:17
阅读次数:
140
1. 首先,贴一个简单的Win32的Hello World程序,这是学MFC的基础。
#include
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,...
分类:
编程语言 时间:
2015-05-27 08:38:30
阅读次数:
261
#include
#include
#include
#include
#define Pi 3.1415926
long WINAPI WndProc(HWND hWnd, UINT iMessage, UINT wParam, LONG lParam);
BOOL InitWindowsClass(HINSTANCE hInstance);
BOOL InitWindows(HINSTANCE...
Windows窗口创建的基本代码:#include LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);int WINAPI WinMain( __in HINSTANCE hInstance, __in_opt HINSTANC...
http://bbs.a9vg.com/thread-4519306-1-1.html
http://bbs.a9vg.com/thread-4519311-1-1.html
http://bbs.a9vg.com/thread-4519312-1-1.html
http://bbs.3dmgame.com/thread-4780495-1-1.html
http://bbs.3dmgam...
分类:
其他好文 时间:
2015-05-01 07:11:04
阅读次数:
113