Encapsulation of Windows applications-function met
2016-08-23
0 0 0
no vote
Other
Earn points
# include
HINSTANCE hInst;
HWND hWnd;
MSG msg;
Char lpszClassName[]= "window";
char * ShowText;
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL Create(HINSTANCE, int);
int Run();
LRESULT CALLBACK WndProc(
HWND ,UNIT,
WPARAM,LPARAM);
void OnLBUTTONDown(
HWND hWnd,
UNIT message,
WPARAM aParam,
LPARAM lParam);
void OnPaint(
HWND hWnd,
UNIT message,
WPARAM aParam,
LPARAM lParam);
void OnDestory(
HWND hWnd,
UNIT message,
WPARAM aParam,
LPARAM lParam);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine)
{
MyRegisterClass(hInstance);
Create(hInstance,nCmdShow);
ShowWindow(hWnd,nCmdShow);
UpdateWindow(hWnd);
return Run();
}
ATOM MyRegisterClass(HINSTANCE hInstance)
{
WNDCLASS wc;
wc.style=0;
wc.lpfnWndProc=WndProc;
wc.cbClsExtra=0;
wc.cbWndE
HINSTANCE hInst;
HWND hWnd;
MSG msg;
Char lpszClassName[]= "window";
char * ShowText;
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL Create(HINSTANCE, int);
int Run();
LRESULT CALLBACK WndProc(
HWND ,UNIT,
WPARAM,LPARAM);
void OnLBUTTONDown(
HWND hWnd,
UNIT message,
WPARAM aParam,
LPARAM lParam);
void OnPaint(
HWND hWnd,
UNIT message,
WPARAM aParam,
LPARAM lParam);
void OnDestory(
HWND hWnd,
UNIT message,
WPARAM aParam,
LPARAM lParam);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine)
{
MyRegisterClass(hInstance);
Create(hInstance,nCmdShow);
ShowWindow(hWnd,nCmdShow);
UpdateWindow(hWnd);
return Run();
}
ATOM MyRegisterClass(HINSTANCE hInstance)
{
WNDCLASS wc;
wc.style=0;
wc.lpfnWndProc=WndProc;
wc.cbClsExtra=0;
wc.cbWndE
c++
windows
函数
方法
应用程序
封装
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment