Welcome![Sign In][Sign Up]
Location:
Search - PreCreateWindow

Search list

[OS programstealth

Description: 这个由Visual C++ 5.0开发的SDI程序演示如何让程序运行时在Window 95或Windows NT 4.0的任务条上不显示出来,程序重载了CMainFrame中的PreCreateWindow()函数 COOL(29KB)
Platform: | Size: 17719 | Author: lixing | Hits:

[OS programstealth

Description: 这个由Visual C++ 5.0开发的SDI程序演示如何让程序运行时在Window 95或Windows NT 4.0的任务条上不显示出来,程序重载了CMainFrame中的PreCreateWindow()函数 COOL(29KB)-This Visual C++ 5.0 developed by SDI program demonstrates how to make the process run-time in the Window 95 or Windows NT 4.0 task bar does not show up, procedure overloading the CMainFrame in PreCreateWindow () function COOL (29KB)
Platform: | Size: 29696 | Author: lixing | Hits:

[GUI Develophidemywindows

Description: 怎么才能使主界面一启动就隐藏窗口 对话框 可以在对话框中重载虚函数DefWindowProc[]。 LRESULT CMyDlg::DefWindowProc[UINT message, WPARAM wParam, LPARAM lParam] { if[message==133] ShowWindow[SW_HIDE] return CDialog::DefWindowProc[message, wParam, lParam] } 框架 BOOL CMainFrame::PreCreateWindow[CREATESTRUCT& cs] { cs.style=WS_POPUO //使得主界面不可见 cs.dwExStyle |= WS_EX_TOOLWINDOW //不显示任务按钮 if[ !CFrameWnd::PreCreateWindow[cs] ] return FALSE return TRUE } -How to make one start on the main interface window of the dialog box can be hidden in the dialog box overloaded virtual function DefWindowProc []. LRESULT CMyDlg:: DefWindowProc [UINT message, WPARAM wParam, LPARAM lParam] [if [message == 133] ShowWindow [SW_HIDE] return CDialog:: DefWindowProc [message, wParam, lParam] ] framework BOOL CMainFrame:: PreCreateWindow [CREATESTRUCT & cs] [cs.style = WS_POPUO // enable the main interface is not visible cs.dwExStyle | = WS_EX_TOOLWINDOW // mission button is not displayed if [! CFrameWnd:: PreCreateWindow [cs]] return FALSE return TRUE ]
Platform: | Size: 36864 | Author: piit_9 | Hits:

[Windows Developricheditctrlex

Description: 多功能编辑控件源代码:件源代码多功能编辑-// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMainFrame) virtual BOOL PreCreateWindow(CREATESTRUCT& cs) //}}AFX_VIRTUAL
Platform: | Size: 21504 | Author: richeditctrlex | Hits:

[DirextXParallelWorld

Description: 一个用DirectX9编写的3D小游戏,虽然功能不多,但是基本的倒影,人物行走,对话等都实现。-RView::CRView() { // TODO: add construction code here } CRView::~CRView() { } BOOL CRView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs cs.style|=WS_CLIPSIBLINGS|WS_CLIPCHILDREN return CView::PreCreateWindow(cs) } ///////////////////////////////////////////////////////////////////////////// // CRView drawing void CRView::OnDraw(CDC* pDC) { CRDoc* pDoc = GetDocument() ASSERT_VALID(pDoc) // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CRView printing BOOL CRView::OnPreparePrinting(CPrintInfo* pInfo) { // default preparation return DoPreparePrinting(pInfo) } void CRView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: add extra initialization before printing } void CRView::OnEndPrinting(CDC* /*
Platform: | Size: 8204288 | Author: 任龙 | Hits:

[Program docRichedit

Description: a.可以编译,不能执行的 AfxInitRichEdit() b.升级默认的Riched版本(默认的有一些bug),如 可在InitInstance中添加 LoadLibrary("RICHED20.DLL") 最后注意 FreeLibrary 如果是CRichEditView基类的可用 BOOL CXXXXXXView::PreCreateWindow(CREATESTRUCT& cs) { //装入rich edit version 2.0 if (LoadLibraryA("RICHED20.DLL") == NULL) { AfxMessageBox(_T("Fail to load \"riched20.dll\"."),MB_OK | MB_ICONERROR) -very good!
Platform: | Size: 12288 | Author: 伊一 | Hits:

[3D Graphicaaa

Description: 这是用MFC编写的使用openGL的视口代码。 CChildView::CChildView() 构造函数 CChildView::~CChildView() 析构函数 BEGIN_MESSAGE_MAP(CChildView,CWnd ) 消息映射 BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs)创建窗口重新设置窗口参数 BOOL CChildView::PreTranslateMessage( MSG* pMsg ) 翻译消息 int CChildView::OnCreate( LPCREATESTRUCT lpCreateStruct ) 窗口创建好后进入此函数 完成openGL的初始化 void CChildView::OnSize( UINT nType, int cx, int cy ) 当窗口大小发生改变时重新设置OPenGL的视口参数。 void CChildView::OnDestroy() 销毁窗口 -It is written in MFC to use openGL viewport code. CChildView:: CChildView () constructor CChildView:: ~ CChildView () destructor BEGIN_MESSAGE_MAP (CChildView, CWnd) message map BOOL CChildView:: PreCreateWindow (CREATESTRUCT & cs) to create a window to reset the window parameters BOOL CChildView:: PreTranslateMessage (MSG* pMsg ) translation of the message int CChildView:: OnCreate (LPCREATESTRUCT lpCreateStruct) window is created and entered this function to complete openGL initialization void CChildView:: OnSize (UINT nType, int cx, int cy) when the window size changed, re-setting the OPenGL viewport parameters. void CChildView:: OnDestroy () destruction of the window
Platform: | Size: 1024 | Author: 徐国华 | Hits:

[Windows DevelopLogTest

Description: ClogFileEx的事例 CLogFileEx是别人设计的日志记录类,我加入了事例代码 1、将ClogFileEx目录拷贝到工程所在目录 2、将两个文件加入到工程中 3、打开StdAfx.h 输入 #define LogFile 如果要关闭日志功能只需注释改行 4、在theApp中 定义public #ifdef LogFile CLogFile m_LogFile #endif 5、在应用程序InitInstance中 #ifdef LogFile m_LogFile.Set_cFileName("test.log") m_LogFile.Set_cModuleName(" View") m_LogFile.Set_cProcName(" PreCreateWindow") m_LogFile.AddRecord(" Start log\n\t") #endif 6、在JPClientWatch.h #ifdef _LOGFILE #include "CLogFileEx/LogFile.h" #endif 7、 在其他的引用地方输入: #ifdef _LOGFILE CLogTestApp* theApp= (CLogTestApp*)AfxGetApp() theApp->m_LogFile.Set_cModuleName(" View") theApp->m_LogFile.Set_cProcName(" PreCreateWindow") theApp->m_LogFile.AddRecord(" Start log\n\t") #endif -ClogFileEx example
Platform: | Size: 135168 | Author: cyc | Hits:

CodeBus www.codebus.net