#include<windows.h>
HINSTANCE hInstance;
HINSTANCE hInst;
MSG msg;
char lpszClassName[]=\"窗口\";
char *ShowText;
LRESULT CALLBACK WndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam);
class CCmdTarget
{
public:
HWND hWnd;
LRESULT CALLBACK AfxWndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam);
virtual void OnLButtonDown();
void OnDraw(HDC hdc);//这里为何不用virtual呢?
virtual void OnDestroy();
};
//
LRESULT CALLBACK CCmdTarget::AfxWndProc(HWND hWnd,UINT message,
WPARAM wParam,LPARAM lParam)
{
switch(message)
{
case WM_LBUTTONDOWN:
OnLButtonDown();
break;
case WM_PAINT:
&nb……
posted on 2007-05-18 15:46
rebol 阅读(118)
评论(0) 编辑 收藏 引用