《MFC程序开发参考大全》pdf和代码


《MFC程序开发参考大全》pdf和代码,完整的pdf和代码打包。
资源截图
代码片段和文件信息

#include “windows.h“

//窗口函数
LRESULT CALLBACK WNDFUN (HWND hWnd UINT msg WPARAM wparam LPARAM lparam)
{
switch (msg)
{

case WM_PAINT:
{
HDC hdc = GetDC(hWnd);
SetBkMode(hdcTRANSPARENT);
TextOut(hdc2020“明日科技有限公司“16);
DeleteDC(hdc);
break;
}

case WM_CLOSE:
{
DestroyWindow(hWnd);
break;
}
case WM_DESTROY:
{
PostQuitMessage(0);
break;

}
default:
return DefWindowProc(hWndmsgwparamlparam);
}

return  0;
}


//程序的进入点
int WINAPI WinMain(HINSTANCE hInstance  HINSTANCE hPrevInstance 
                  LPSTR lpCmdLine  int nCmdShow)
{
//设计窗口类

WNDCLASS wndcls;
wndcls.style         = CS_DBLCLKS|CS_VREDRAW|CS_HREDRAW;
wndcls.lpszMenuName  = NULL;
wndcls.lpszClassName = “CustomWnd“;
wndcls.lpfnWndProc   = WNDFUN;
wndcls.hInstance     = GetModuleHandle(NULL);
wndcls.hIcon         = NULL;
wndcls.hCursor       = NULL;
wndcls.hbrBackground = (HBRUSH)GetStockobject(GRAY_BRUSH);
wndcls.cbClsExtra    = 0;
wndcls.cbWndExtra    = 0;

//注册窗口类

RegisterClass(&wndcls);

//创建窗口

HWND hwnd;
hwnd = CreateWindow(“CustomWnd““Win32App“WS_CAPTION|WS_OVERLAPPEDWINDOW|WS_SYSMENU5050500500NULLNULLwndcls.hInstanceNULL);

//显示窗口
ShowWindow(hwndSW_SHOW);
UpdateWindow(hwnd);

//进入消息循环
MSG msg;
while (GetMessage(&msgNULL00))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}

return msg.wParam;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......    155786  2007-01-27 17:40  MFC程序开发参考大全mingrisoft11DebugOriginApp.exe

    .......      1512  2007-01-08 15:21  MFC程序开发参考大全mingrisoft11Main.cpp

    .......      3949  2007-01-08 14:44  MFC程序开发参考大全mingrisoft11OriginApp.dsp

    .......       543  2007-01-08 14:24  MFC程序开发参考大全mingrisoft11OriginApp.dsw

    .......       586  2007-01-09 16:21  MFC程序开发参考大全mingrisoft12DebugAPPMODUL.sbr

    .......   3654656  2007-01-12 13:40  MFC程序开发参考大全mingrisoft12DebugMFCApp.bsc

    .......    123009  2007-01-27 17:40  MFC程序开发参考大全mingrisoft12DebugMFCApp.exe

    .......         0  2007-01-12 13:40  MFC程序开发参考大全mingrisoft12DebugMFCApp.sbr

    .......         0  2007-01-12 13:40  MFC程序开发参考大全mingrisoft12DebugMFCAppDlg.sbr

    .......   1376672  2007-01-09 16:11  MFC程序开发参考大全mingrisoft12DebugStdAfx.sbr

    .......      1458  2007-01-11 11:34  MFC程序开发参考大全mingrisoft12MFCApp.cpp

    .......      4286  2007-01-11 10:11  MFC程序开发参考大全mingrisoft12MFCApp.dsp

    .......       537  2007-01-09 15:51  MFC程序开发参考大全mingrisoft12MFCApp.dsw

    .......      1324  2007-01-10 15:04  MFC程序开发参考大全mingrisoft12MFCApp.h

    .......      5384  2007-01-12 13:40  MFC程序开发参考大全mingrisoft12MFCApp.rc

    .......      4255  2007-01-12 13:40  MFC程序开发参考大全mingrisoft12MFCAppDlg.cpp

    .......      1381  2007-01-12 13:01  MFC程序开发参考大全mingrisoft12MFCAppDlg.h

    .......      3579  2007-01-09 15:51  MFC程序开发参考大全mingrisoft12ReadMe.txt

    .......      5694  2007-01-11 09:01  MFC程序开发参考大全mingrisoft12
es29.ico

    .......      5694  2007-01-11 09:01  MFC程序开发参考大全mingrisoft12
es30.ico

    .......      1078  2007-01-09 15:51  MFC程序开发参考大全mingrisoft12
esMFCApp.ico

    .......       398  2007-01-09 15:51  MFC程序开发参考大全mingrisoft12
esMFCApp.rc2

    .......       774  2007-01-12 13:40  MFC程序开发参考大全mingrisoft12
esource.h

    .......       208  2007-01-09 15:51  MFC程序开发参考大全mingrisoft12StdAfx.cpp

    .......      1054  2007-01-09 15:51  MFC程序开发参考大全mingrisoft12StdAfx.h

    .......      1708  2007-03-30 16:49  MFC程序开发参考大全mingrisoft13
ote.dsm

    .......    163885  2007-01-06 10:03  MFC程序开发参考大全mingrisoft21DebugExample.exe

    .......       133  2007-01-06 09:13  MFC程序开发参考大全mingrisoft21Example.cpp

    .......      4544  2007-01-06 10:13  MFC程序开发参考大全mingrisoft21Example.dsp

    .......       539  2007-03-26 10:01  MFC程序开发参考大全mingrisoft21Example.dsw

............此处省略2132个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)