• 大小: 89.57MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-05-15
  • 语言: C/C++
  • 标签: 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程序开发参考大全\mingrisoft\01\01\Debug\OriginApp.exe

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

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

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

    .......       586  2007-01-09 16:21  MFC程序开发参考大全\mingrisoft\01\02\Debug\APPMODUL.sbr

    .......   3654656  2007-01-12 13:40  MFC程序开发参考大全\mingrisoft\01\02\Debug\MFCApp.bsc

    .......    123009  2007-01-27 17:40  MFC程序开发参考大全\mingrisoft\01\02\Debug\MFCApp.exe

    .......         0  2007-01-12 13:40  MFC程序开发参考大全\mingrisoft\01\02\Debug\MFCApp.sbr

    .......         0  2007-01-12 13:40  MFC程序开发参考大全\mingrisoft\01\02\Debug\MFCAppDlg.sbr

    .......   1376672  2007-01-09 16:11  MFC程序开发参考大全\mingrisoft\01\02\Debug\StdAfx.sbr

    .......      1458  2007-01-11 11:34  MFC程序开发参考大全\mingrisoft\01\02\MFCApp.cpp

    .......      4286  2007-01-11 10:11  MFC程序开发参考大全\mingrisoft\01\02\MFCApp.dsp

    .......       537  2007-01-09 15:51  MFC程序开发参考大全\mingrisoft\01\02\MFCApp.dsw

    .......      1324  2007-01-10 15:04  MFC程序开发参考大全\mingrisoft\01\02\MFCApp.h

    .......      5384  2007-01-12 13:40  MFC程序开发参考大全\mingrisoft\01\02\MFCApp.rc

    .......      4255  2007-01-12 13:40  MFC程序开发参考大全\mingrisoft\01\02\MFCAppDlg.cpp

    .......      1381  2007-01-12 13:01  MFC程序开发参考大全\mingrisoft\01\02\MFCAppDlg.h

    .......      3579  2007-01-09 15:51  MFC程序开发参考大全\mingrisoft\01\02\ReadMe.txt

    .......      5694  2007-01-11 09:01  MFC程序开发参考大全\mingrisoft\01\02\res\29.ico

    .......      5694  2007-01-11 09:01  MFC程序开发参考大全\mingrisoft\01\02\res\30.ico

    .......      1078  2007-01-09 15:51  MFC程序开发参考大全\mingrisoft\01\02\res\MFCApp.ico

    .......       398  2007-01-09 15:51  MFC程序开发参考大全\mingrisoft\01\02\res\MFCApp.rc2

    .......       774  2007-01-12 13:40  MFC程序开发参考大全\mingrisoft\01\02\resource.h

    .......       208  2007-01-09 15:51  MFC程序开发参考大全\mingrisoft\01\02\StdAfx.cpp

    .......      1054  2007-01-09 15:51  MFC程序开发参考大全\mingrisoft\01\02\StdAfx.h

    .......      1708  2007-03-30 16:49  MFC程序开发参考大全\mingrisoft\01\03\note.dsm

    .......    163885  2007-01-06 10:03  MFC程序开发参考大全\mingrisoft\02\01\Debug\Example.exe

    .......       133  2007-01-06 09:13  MFC程序开发参考大全\mingrisoft\02\01\Example.cpp

    .......      4544  2007-01-06 10:13  MFC程序开发参考大全\mingrisoft\02\01\Example.dsp

    .......       539  2007-03-26 10:01  MFC程序开发参考大全\mingrisoft\02\01\Example.dsw

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

评论

共有 条评论