A4

所属分类:Windows编程
开发工具:Visual C++
文件大小:17KB
下载次数:2
上传日期:2007-07-03 22:19:33
上 传 者呼啦啦呼
说明:  MFC编程源码,自己看看吧。我也不太清楚啦。
(MFC programming source code, they watch it. I did not know Matata.)

文件列表:
A4\CHILDFRM.CPP (1493, 1998-11-07)
A4\CHILDFRM.H (1403, 1998-11-07)
A4\MAINFRM.CPP (2933, 1998-11-07)
A4\MAINFRM.H (1550, 1998-11-07)
A4\RES\TOOLBAR.BMP (1078, 1998-11-07)
A4\RES\WZD.ICO (1078, 1998-11-07)
A4\RES\WZD.RC2 (395, 1998-11-07)
A4\RES\WZDDOC.ICO (1078, 1998-11-07)
A4\RES (0, 2007-07-03)
A4\RESOURCE.H (488, 1998-11-07)
A4\STDAFX.CPP (201, 1998-11-07)
A4\STDAFX.H (987, 1998-11-07)
A4\WIZARD (0, 2007-07-03)
A4\WZD.CPP (4343, 1998-11-07)
A4\WZD.DSP (4582, 1998-11-07)
A4\WZD.DSW (529, 1998-11-07)
A4\WZD.H (1333, 1998-11-07)
A4\WZD.RC (12533, 1998-11-07)
A4\WZDDOC.CPP (1682, 1998-11-07)
A4\WZDDOC.H (1450, 1998-11-07)
A4\WZDVIEW.CPP (2491, 1998-11-07)
A4\WZDVIEW.H (1849, 1998-11-07)
A4 (0, 2007-07-03)

///////////////////////////////////////////////////////////////////// // Modify the Application Class. ///////////////////////////////////////////////////////////////////// // 1) to initially maximize or minimize the application's window: // (found in the InitInstance() function pMainFrame->ShowWindow(SW_SHOWMAXIMIZED); //or SW_SHOWMINIMIZED pMainFrame->UpdateWindow(); ///////////////////////////////////////////////////////////////////// // Modify the Mainframe Class. ///////////////////////////////////////////////////////////////////// // 1) modify the PreCreateWindow() function BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { // 2) to center window at 90% of full screen int xSize = ::GetSystemMetrics (SM_CXSCREEN); int ySize = ::GetSystemMetrics (SM_CYSCREEN); cs.cx = xSize*9/10; cs.cy = ySize*9/10; cs.x = (xSize-cs.cx)/2; cs.y = (ySize-cs.cy)/2; // 3) to keep document title out of main window's caption cs.style &= ~ FWS_ADDTOTITLE; // 4) to remove min/max boxes cs.style &= ~(WS_MAXIMIZEBOX|WS_MINIMIZEBOX); // 5) to fix your application's window size cs.style &= ~WS_THICKFRAME; return CMDIFrameWnd::PreCreateWindow(cs); } ///////////////////////////////////////////////////////////////////// // From: Visual C++ MFC Programming by Example by John E. Swanke // Copyright (C) 19*** jeswanke. All rights reserved. /////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者