• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ AfxSetResourceHandle函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中AfxSetResourceHandle函数的典型用法代码示例。如果您正苦于以下问题:C++ AfxSetResourceHandle函数的具体用法?C++ AfxSetResourceHandle怎么用?C++ AfxSetResourceHandle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了AfxSetResourceHandle函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: AfxGetApp

BOOL CParticleEditor::Initialize( )
{
	CWinApp* pApp = AfxGetApp();
	ASSERT(pApp != NULL);
    if (pApp == NULL)
    {
        return FALSE;
    }

	// get the apps instance handle for loading resources
	m_AppInst = AfxGetResourceHandle();

	//Direct the application to look in dll for resources
	AfxSetResourceHandle(ParticleEditorDLL.hModule);

	// use my string / icon resources
	// Note IDR_EXAMPLETYPE has to be a unique id even between DLLS
	// to get the ICONS right on the Window
	m_DocTemplate = new CMultiDocTemplate(IDR_PARTICLETYPE,
			RUNTIME_CLASS(CParticleDoc),
			RUNTIME_CLASS(CParticleFrame),
			RUNTIME_CLASS(CParticleRenderView));

	// put this after setting the menu and accelerators so it won't allocate it's own
	pApp->AddDocTemplate(m_DocTemplate);

	// construct resource info
	m_ObjCollection.name.LoadString(IDS_RESOURCE_NAME);
	m_ObjCollection.pageIndex = &m_PageIndex;

	m_ObjCollection.hIcon = (HICON)LoadImage(ParticleEditorDLL.hModule, MAKEINTRESOURCE(IDR_PARTICLETYPE), 
		IMAGE_ICON, 0, 0, LR_CREATEDIBSECTION);
	VERIFY(m_ObjCollection.hIcon != NULL);

	// value should be 1 - 1000
	// NOTE: Against convention this was set at coding to 31000 even the example is set at 5000
	m_ObjCollection.priority = IDR_PARTICLETYPE; 
    m_ObjCollection.extensions = PARTICLE_EXTENSIONS;
    AfxSetResourceHandle(m_AppInst);

	return TRUE;
}
开发者ID:klhurley,项目名称:ElementalEngine2,代码行数:42,代码来源:ParticleEditor.cpp


示例2: ASSERT

VOID Language::UnInstallRunLanguage()///设置成保存的资源进程
{//卸载资源
 // ASSERT(m_hOldInstance!=NULL);
  if(m_hOldInstance==NULL)return;
  HINSTANCE hInstal;
  hInstal=AfxGetResourceHandle();
  ASSERT(FreeLibrary(hInstal));
  AfxSetResourceHandle(m_hOldInstance);
  m_hCurrentInstance=m_hOldInstance;
  m_hOldInstance=NULL;  
}
开发者ID:uesoft,项目名称:SelEngineVolume,代码行数:11,代码来源:InstallLang.cpp


示例3: AfxGetResourceHandle

void CMediaVisDlg::OnSetup()
{
	int nItem = m_wndList.GetNextItem( -1, LVIS_SELECTED );
	if ( nItem < 0 ) return;

	CString strCLSID = m_wndList.GetItemText( nItem, 1 );
	CString strPath  = m_wndList.GetItemText( nItem, 2 );

	CLSID pCLSID;
	if ( ! Hashes::fromGuid( strCLSID, &pCLSID ) ) return;
	if ( ! Plugins.LookupEnable( pCLSID ) ) return;

	IAudioVisPlugin* pPlugin = NULL;

	if ( Settings.MediaPlayer.VisCLSID == strCLSID &&
		 Settings.MediaPlayer.VisPath == strPath )
	{
		IMediaPlayer* pPlayer = ( m_pFrame != NULL ) ? m_pFrame->GetPlayer() : NULL;

		if ( pPlayer != NULL )
		{
			pPlayer->GetPlugin( &pPlugin );

			if ( pPlugin != NULL )
			{
				pPlugin->Configure();
				pPlugin->Release();
				return;
			}
		}
	}

	HINSTANCE hRes = AfxGetResourceHandle();

	HRESULT hr = CoCreateInstance( pCLSID, NULL, CLSCTX_ALL, IID_IAudioVisPlugin, (void**)&pPlugin );

	AfxSetResourceHandle( hRes );

	if ( FAILED( hr ) || pPlugin == NULL ) return;

	if ( ! strPath.IsEmpty() )
	{
		IWrappedPluginControl* pWrap = NULL;
		hr = pPlugin->QueryInterface( IID_IWrappedPluginControl, (void**)&pWrap );
		if ( SUCCEEDED( hr ) && pWrap != NULL )
		{
			pWrap->Load( CComBSTR( strPath ), 0 );
			pWrap->Release();
		}
	}

	pPlugin->Configure();
	pPlugin->Release();
}
开发者ID:GetEnvy,项目名称:Envy,代码行数:54,代码来源:DlgMediaVis.cpp


示例4: OnInitDialog

    virtual BOOL OnInitDialog()
    {
        AfxSetResourceHandle(m_ResourceDllHandle);
        AfxSetResourceHandle(m_ExeHandle);

        //call the Trace Dlg and not TabbedBaseTraceDlg because
        //the dialogs that are displayed on the tab control 
        //should be taken from the Exe resources while the trace dialog
        //is taken from the Resource Dll
        CTraceTabBaseDlg::OnInitDialog();

        // Set the icon for this dialog.  The framework does this automatically
        //  when the application's main window is not a dialog
        SetIcon(m_hIcon, TRUE);			// Set big icon
        SetIcon(m_hIcon, FALSE);		// Set small icon

        UpdateData(FALSE);

        return TRUE;  // return TRUE  unless you set the focus to a control
    }
开发者ID:BlueSpells,项目名称:MapGen,代码行数:20,代码来源:ResourcedGuiApplication.cpp


示例5: AfxSetResourceHandle

//控件绑定
void CCompanionTreeCtrl::PreSubclassWindow()
{
	//加载图片
	if (m_ImageList.GetSafeHandle()==NULL)
	{
		CBitmap TreeImage;
		AfxSetResourceHandle(GetModuleHandle(COMPANION_DLL_NAME));
		TreeImage.LoadBitmap(IDB_TREE_IMAGE);
		AfxSetResourceHandle(GetModuleHandle(NULL));
		m_ImageList.Create(18,18,ILC_COLOR16|ILC_MASK,0,0);
		m_ImageList.Add(&TreeImage,RGB(255,0,255));
	}
	SetImageList(&m_ImageList,LVSIL_NORMAL);

	//设置控件
	SetItemHeight(20);
	SetTextColor(RGB(10,10,10));
	SetBkColor(RGB(245,255,205));
	SendMessage(WN_SET_LINE_COLOR,0,(LPARAM)RGB(69,69,69));

	//插入子项
	TV_INSERTSTRUCT InsertInf;
	memset(&InsertInf,0,sizeof(InsertInf));
	InsertInf.item.cchTextMax=128;
	InsertInf.hInsertAfter=TVI_LAST;
	InsertInf.item.mask=TVIF_IMAGE|TVIF_SELECTEDIMAGE|TVIF_TEXT|TVIF_PARAM;

	//游戏好友
	InsertInf.item.iImage=IMAGE_FRIEND;
	InsertInf.item.iSelectedImage=IMAGE_FRIEND;
	InsertInf.item.pszText=TEXT("游戏好友");
	m_hItemFriend=InsertItem(&InsertInf);

	//厌恶玩家
	InsertInf.item.iImage=IMAGE_DETEST;
	InsertInf.item.iSelectedImage=IMAGE_DETEST;
	InsertInf.item.pszText=TEXT("游戏黑名单");
	m_hItemDetest=InsertItem(&InsertInf);

	__super::PreSubclassWindow();
}
开发者ID:275958081,项目名称:netfox,代码行数:42,代码来源:CompanionTreeCtrl.cpp


示例6: CHashString

//---------------------------------------------------------------------
// Function:	OnCreate
// Description:	Called from the main windows create function
// Parameters:	CMDIFrameWnd *mainWnd = main frames CMDIFrameWnd pointer
// Returns:		.
//---------------------------------------------------------------------
void CStateMachineEditor::OnCreate(CMDIFrameWnd *mainWnd)
{
	MENUINFOMESSAGE mim;
	CBitmap menuBitmap;
	HINSTANCE appInst;

	static DWORD msgHash_GetMenuInfo = CHashString(_T("GetMenuInfo")).GetUniqueID();
	m_ToolBox->SendMessage(msgHash_GetMenuInfo, sizeof(MENUINFOMESSAGE), &mim);

	// get the apps instance handle for loading resources
	appInst = AfxGetResourceHandle();
	// now tell the application to look in dll for resources
	AfxSetResourceHandle(StateMachineEditorDLL.hModule);

	// we need to mergeMenus
	VERIFY(MergeMenus(&m_DocTemplate->m_hMenuShared, mim.m_hMenu, _T("&Window")));	
	// and accelerators
	VERIFY(MergeAccelerators(&m_DocTemplate->m_hAccelTable, mim.m_hAccel));

	mim.m_hAccel = NULL;
	mim.m_hMenu = NULL;
	// load up hi-res toolbar icon
	//menuBitmap.LoadBitmap(IDB_TOOLBAR);
	// we don't really have to have to toolbar visible do we?
	//mim.m_MenuRsrc = IDR_STATEMACHINETYPE;
	//mim.m_MenuBitmap = &menuBitmap;

	static DWORD msgHash_SetMenuInfo = CHashString(_T("SetMenuInfo")).GetUniqueID();
	m_ToolBox->SendMessage(msgHash_SetMenuInfo, sizeof(MENUINFOMESSAGE), &mim);

	static DWORD msgHash_RegisterResourceCollection = CHashString(_T("RegisterResourceCollection")).GetUniqueID();
	m_ToolBox->SendMessage(msgHash_RegisterResourceCollection, sizeof(RESOURCECOLLECTION), &m_ObjCollection);

	FILETYPECREATIONINFO fileInfo;
	fileInfo.m_Description = STATEMACHINE_FILE_DESCRIPTION;
	fileInfo.m_CreationCallback = CStateMachineEditor::StateMachineEditorCreationCallback;
	static DWORD msgHash_RegisterFileTypeCreationInfo = CHashString(_T("RegisterFileTypeCreationInfo")).GetUniqueID();
	m_ToolBox->SendMessage(msgHash_RegisterFileTypeCreationInfo, sizeof( FILETYPECREATIONINFO ), &fileInfo );

	AfxSetResourceHandle(appInst);
}
开发者ID:klhurley,项目名称:ElementalEngine2,代码行数:47,代码来源:StateMachineEditor.cpp


示例7: GetWindowText

void CTEditCtrlWnd::SetEditFocus()
{
	if(m_pEditCtrl)
	{
		CString strBeforeText;
		GetWindowText(strBeforeText);
		m_pEditCtrl->SetBeforText(strBeforeText);
	}

	int nGap = 1;
	CRect   rcClient;
	CString strWindow;

	if (m_bEnable == TRUE)
		return;

	GetClientRect(rcClient);
	rcClient.DeflateRect(nGap, nGap, nGap, nGap);

	CRect rt;
	GetWindowRect(rt);
	ScreenToClient(rt);

	HINSTANCE hInstSave = AfxGetResourceHandle();
	AfxSetResourceHandle(theApp.m_hInstance);

	m_pEditCtrl->Create(rcClient, this, IDC_EDIT_MAPLOADEDIT,
		m_nIntegerLength,
		m_nRealLength,
		m_bUseMinus);
	m_pEditCtrl->SetFont(&m_fontDefault);
	m_pEditCtrl->IngnoreComma(m_bIgnoreComma);

	AfxSetResourceHandle(hInstSave);

	if (m_pEditCtrl->GetSafeHwnd() != NULL)
	{
		GetWindowText(strWindow);
		m_pEditCtrl->SetInit(strWindow);
	}
}
开发者ID:kjkpoi,项目名称:Stock_API,代码行数:41,代码来源:TEditCtrlWnd.CPP


示例8: AfxSetResourceHandle

BOOL CQuoteReportApp::InitInstance()
{
	CWinApp::InitInstance();

	HINSTANCE hRes = (HINSTANCE)CWinnerApplication::GetModuleHandle(_T("QuoteLang.dll"));
	if (hRes)
	{
		CWinnerApplication::FormatLog(INFO_LOG_LEVEL,QuoteReportLoggerName,"行情报价模块-重设资源句柄为:%x",hRes);
		AfxSetResourceHandle(hRes);
	}
	return TRUE;
}
开发者ID:hefen1,项目名称:XCaimi,代码行数:12,代码来源:QuoteReport.cpp


示例9: LoadIconFromModule

    HICON LoadIconFromModule(UINT uID, LPCTSTR lpzModuleName)
    {
        HICON hRet = NULL;

        HINSTANCE hResOld = SwitchResourceToModule(lpzModuleName);
        {
            hRet = LoadIcon(AfxGetResourceHandle(), MAKEINTRESOURCE(uID));
        }
        AfxSetResourceHandle(hResOld);

        return hRet;
    };
开发者ID:fffonion,项目名称:V8,代码行数:12,代码来源:UIHelper.cpp


示例10: GetClientRect

//鼠标按下消息
void CControlMessage::OnLButtonDown(UINT nFlags, CPoint point)
{
	if (m_SplitWnd.GetSafeHwnd()==NULL)
	{
		CRect ClientRect;
		GetClientRect(&ClientRect);
		ClientRect.right=__max(ClientRect.right,3);
		MapWindowPoints(GetParent(),&ClientRect);
		HINSTANCE hLastHandle=AfxGetResourceHandle();
		AfxSetResourceHandle(GetModuleHandle(FACE_DLL_NAME));
		if (m_SplitWnd.Create(NULL,NULL,WS_CHILD|WS_VISIBLE,ClientRect,GetParent(),10))	
		{
			m_SplitWnd.BringWindowToTop();
			SetFocus();
			SetCapture();
		}
		AfxSetResourceHandle(hLastHandle);
	}

	return;
}
开发者ID:liuwanbing,项目名称:liuwanbing,代码行数:22,代码来源:AFCWindow.cpp


示例11: AfxSetResourceHandle

//初始化函数
BOOL CDlgServerItem::OnInitDialog()
{
	__super::OnInitDialog();

	//设置资源
	AfxSetResourceHandle(GetModuleHandle(NULL));

	//加载房间
	LoadDBServerItem();

	return TRUE;
}
开发者ID:lonyzone,项目名称:oathx-ogrex-editor,代码行数:13,代码来源:DlgServerItem.cpp


示例12: get_dll_resource

void get_dll_resource(void)
{
   /* this function changes the resource handle to that of the DLL */
   if (resource_counter == 0)
   {
	   AFX_MODULE_STATE* pModule= AfxGetStaticModuleState();
	   save_hInstance = AfxGetResourceHandle();
	   AfxSetResourceHandle(pModule->m_hCurrentResourceHandle);
   }

   resource_counter++;
}
开发者ID:ZhangYueqiu,项目名称:Script.NET,代码行数:12,代码来源:DuiVisionDesigner.cpp


示例13: AfxSetResourceHandle

bool GLIShaderDebug::Init(HINSTANCE hInstance, HWND parentWnd, SciTEBase *newScite)
{
  //If already init, return false;
  if(debugInstance != NULL)
  {
    return false;
  }

  //Assign the MFC instance handle
  afxCurrentInstanceHandle = hInstance;
  AfxSetResourceHandle(hInstance);

  //Create the instance  
  debugInstance = new GLIShaderDebug(newScite);

  //Create the dialog window
  debugInstance->dialogWindow = ::CreateDialog(hInstance, MAKEINTRESOURCE(IDD_GLISHADERDEBUG), parentWnd, ShaderDebugMsg); 
  if(!debugInstance->dialogWindow)
  {
    newScite->OutputAppendString("== Unable to init the GLIntercept shader debug window ==\n");
    delete debugInstance;
    debugInstance = NULL;
    return false;
  }

  //Position window 
  HWND parent = GetParent(debugInstance->dialogWindow);
  if(parent)
  {
    RECT parentPos;
    RECT dialogSize;
    if(GetWindowRect(parent, &parentPos) &&
       GetWindowRect(debugInstance->dialogWindow, &dialogSize))
    {
      //Position the window to the right of the host window
      int newW = dialogSize.right  - dialogSize.left;
      int newH = dialogSize.bottom - dialogSize.top;

      int newX = parentPos.right - (newW/4) + 50;
      int newY = parentPos.top   + 160;

      //Set the new window position (Don't activate it)
      SetWindowPos(debugInstance->dialogWindow, HWND_TOP,
                   newX, newY, newW, newH, 
                   SWP_NOACTIVATE);
    }
  }

  //Show the window
  //ShowWindow(debugInstance->dialogWindow, SW_SHOW);

  return true;
}
开发者ID:Shailla,项目名称:jeukitue.moteur,代码行数:53,代码来源:GLIShaderDebug.cpp


示例14: GetRect

void VDEIODLL_EXPORT_API GetRect(CPoint& Point1,CPoint& Point2,BOOL& bFlag)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());
	HINSTANCE main_hInstance = AfxGetResourceHandle();    //获取主程序资源句柄
	AfxSetResourceHandle(theApp.m_hInstance);             //获取dll程序资源句柄
	CWVedio Dlg;
	int ret = Dlg.DoModal();
	if (ret == 100)
	{
		Dlg.GetPoint(Point1,Point2,bFlag);
	}
}
开发者ID:Strongc,项目名称:game-ui-solution,代码行数:12,代码来源:Vedio.cpp


示例15: StartVedio

void VDEIODLL_EXPORT_API StartVedio(CString strFilePath,CString strFileName,int nRate,
	CPoint Point1,CPoint Point2,int nFlag,HWND GetCurHwnd)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());
	HINSTANCE main_hInstance = AfxGetResourceHandle();    //获取主程序资源句柄
	AfxSetResourceHandle(theApp.m_hInstance);             //获取dll程序资源句柄
	if(NULL == lpVeioScreen)
	{
		lpVeioScreen = new VedioScreen(strFilePath,strFileName,nRate,Point1,Point2,nFlag,GetCurHwnd);
		lpVeioScreen->StartVedio();
	}
}
开发者ID:Strongc,项目名称:game-ui-solution,代码行数:12,代码来源:Vedio.cpp


示例16: Filter_ShowConfigDlg

USAGEMODE HRESULT Filter_ShowConfigDlg(void* pExistingFilter, const SMSGENTRY* psMsgEntry, 
									   ETYPE_BUS eType, UINT nHardware, CWnd* pParent)
{
	//Place this code at the beginning of the export function.
	//Save previous resource handle and switch to current one.
	HINSTANCE hInst = AfxGetResourceHandle();
	AfxSetResourceHandle(FilterDLL.hResource);

    HRESULT hResult = S_FALSE;
    switch (eType)
    {
        case CAN:
        {
            if (pExistingFilter != NULL)
            {
                SFILTERAPPLIED_CAN* pAppliedFilterCan = (SFILTERAPPLIED_CAN*)pExistingFilter;
                SFILTERAPPLIED_CAN sTempObj;
                sTempObj.bClone(*pAppliedFilterCan);

                CFilterConfigDlg omDlg(&sTempObj, psMsgEntry, nHardware, pParent);
                if (omDlg.DoModal() == IDOK)
                {
                    pAppliedFilterCan->bClone(sTempObj);
                    hResult = S_OK;
                }
                //delete omDlg;
            }
        }
        break;
        default:
        {
        }
        break;
    }
	//Place this at the end of the export function.
	//switch back to previous resource handle.
	AfxSetResourceHandle(hInst); 
    return hResult;
}
开发者ID:Conti-Meissner,项目名称:busmaster,代码行数:39,代码来源:Filter.cpp


示例17: AfxSetResourceHandle

//更新图标
VOID CGameServerDlg::UpdateServerLogo(LPCTSTR pszServerDLL)
{
	//加载资源
	HINSTANCE hInstance=AfxLoadLibrary(pszServerDLL);

	//加载图形
	if (hInstance!=NULL)
	{
		//设置资源
		AfxSetResourceHandle(hInstance);

		//设置资源
		CStatic * pServerLogo=(CStatic *)GetDlgItem(IDC_SERVER_LOGO);
		pServerLogo->SetIcon(::LoadIcon(hInstance,TEXT("SERVER_ICON")));

		//释放资源
		AfxFreeLibrary(hInstance);
		AfxSetResourceHandle(GetModuleHandle(NULL));
	}

	return;
}
开发者ID:lonyzone,项目名称:whplaza,代码行数:23,代码来源:GameServerDlg.cpp


示例18: AfxGetResourceHandle

void CPlayProfilePage::OnMore()
{
	int nItem = m_wndList.GetNextItem( -1, LVNI_SELECTED );
	if ( nItem == -1 ) return;

	CXMLElement* pXML = (CXMLElement*)m_wndList.GetItemData( nItem );
	
	CString strText;
	m_wndClass.GetWindowText( strText );
	
	if ( m_wndClass.FindStringExact( -1, strText ) != CB_ERR &&
		strText.CompareNoCase( "会议类" ) == 0 )
	{
		HINSTANCE hPrevInst = AfxGetResourceHandle();
		if ( m_hInstance ) AfxSetResourceHandle( m_hInstance );
		
		CChatPropertiesDlg dlg( pXML->GetParent(), this );
		dlg.DoModal();
		
		AfxSetResourceHandle( hPrevInst );
	}
}
开发者ID:pics860,项目名称:callcenter,代码行数:22,代码来源:PageProfilePlay.cpp


示例19: CHashString

/// Process creating new window command
///	\param	size - unused
///	\param	param - unused
DWORD CUndoRedoComponent::OnCreate(DWORD size, void *param)
{
	MENUINFOMESSAGE mim;
	static DWORD msgHash_GetMenuInfo = CHashString(_T("GetMenuInfo")).GetUniqueID();
	m_pToolBox->SendMessage(msgHash_GetMenuInfo, sizeof(MENUINFOMESSAGE),&mim);

	// get the application instance handle for loading resources
	HINSTANCE appInst = AfxGetResourceHandle();
	// now tell the application to look in dll for resources
	AfxSetResourceHandle(UndoRedoDLL.hModule);

	CMenu menu;
	menu.LoadMenu(IDR_UNDO_MENU);
	ASSERT(menu.m_hMenu != NULL);
	// we need to Merge Menus with Undo/Redo items
    // this code works now, but it may need to be updated for exact filling the menu
	const int nEditMenuPosition = 1;
	HMENU hEditMenu = GetSubMenu(mim.m_hMenu, nEditMenuPosition);

	TCHAR menuName[8];
	if (!GetMenuString(mim.m_hMenu, nEditMenuPosition, menuName, RTL_NUMBER_OF(menuName), MF_BYPOSITION) && !_tcscmp(menuName, _T("&Edit")))
	{
		ASSERT(0);
	}
	VERIFY(MergeSubPopupMenu(hEditMenu, menu.GetSubMenu(0)->m_hMenu));
	// and add accelerators
	HACCEL hAccel = ::LoadAccelerators(UndoRedoDLL.hResource, MAKEINTRESOURCE(IDR_UNDO_ACCELERATOR));
	ASSERT(hAccel != NULL);
	VERIFY(MergeAccelerators(&mim.m_hAccel, hAccel));

	VERIFY(::DestroyAcceleratorTable(hAccel));

	// TODO: add shortcut label to menu items
	static DWORD msgHash_SetMenuInfo = CHashString(_T("SetMenuInfo")).GetUniqueID();
	m_pToolBox->SendMessage(msgHash_SetMenuInfo, sizeof(MENUINFOMESSAGE),&mim);

	AfxSetResourceHandle(appInst);
	return MSG_HANDLED_PROCEED;
}
开发者ID:klhurley,项目名称:ElementalEngine2,代码行数:42,代码来源:UndoRedoComponent.cpp


示例20: AfxGetResourceHandle

void CMonitorWnd::OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd)
{
	if ( bActivate )
	{
		HINSTANCE hPrevInst = AfxGetResourceHandle();
		
		HINSTANCE hInstance = m_hInstance ? (HINSTANCE)m_hInstance : NULL;
		if ( hInstance ) AfxSetResourceHandle( hInstance );
		
		ApplyMenu( IDR_MONITORFRAME );
		AfxSetResourceHandle( hPrevInst );
		
		wndPanel.SetParent( this );
		OnSize( SIZE_INTERNAL, 0, 0 );
	}
	else
	{
		DestroyMenu();
	}
	
	CChildWnd::OnMDIActivate( bActivate, pActivateWnd, pDeactivateWnd );
}
开发者ID:pics860,项目名称:callcenter,代码行数:22,代码来源:wndmonitor.cpp



注:本文中的AfxSetResourceHandle函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ AfxSocketInit函数代码示例发布时间:2022-05-30
下一篇:
C++ AfxRegisterWndClass函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap