怎么得到MDI应用程序中多个非活动子框架窗口指针?谢谢! 如题! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CWinApp* pApp = AfxGetApp();ASSERT_VALID( pApp );// 1 - Iterate through the application's document// templates listPOSITION posTemplate =pApp->GetFirstDocTemplatePosition();while( posTemplate != NULL ){// 2 - For each document template object...CDocTemplate* pTemplate = pApp->GetNextDocTemplate( posTemplate );ASSERT_VALID( pTemplate );ASSERT_KINDOF( CDocTemplate, pTemplate );// 3 - Iterate through the template's document listPOSITION posDocument =pTemplate->GetFirstDocPosition();while( posDocument != NULL ){ // 4 - For each document object... CDocument* pDoc = pTemplate->GetNextDoc( posDocument ); ASSERT_VALID( pDoc ); ASSERT_KINDOF( CDocument, pDoc );} 1。通过AfxGetApp()得到当前的App对象;2。通过AfxGetMainWnd()得到主窗口;3。通过CMDIFrameWnd::GetActiveFrame得到当前活动窗口;4。通过GetNextWindow()遍例所有的子窗口;(如果要得到你想要的子窗口,可以通过特定的成员变量来标志); flyelf(空谷清音) GetWindow遍历?怎么实现?可以提供实例参考一下吗? ARToolkit!!!用到ARToolkit后贴opengl纹理出现问题! OpenGL ES 纹理上画点 VC中的多语言解决方案 VC中怎么调outlook的邮件群发功能 关于installshield制作安装程序的问题??? 那有VC做的界面源码下载,在线急等! 为什么要在IOSTRESM类里定义三个PRIVATE的构造函数? 如何异步调用httpopenrequest和httpsendrequest,急急 高分送高手~~~~~~~~~~~~~~~~~~关于软盘安装 VB制作ActiveX控件的问题? 请问怎么写设计文档啊(软件和协议)?最好有示例! 请问如何将窗口的蓝色标题条变小?
ASSERT_VALID( pApp );// 1 - Iterate through the application's document
// templates list
POSITION posTemplate =
pApp->GetFirstDocTemplatePosition();
while( posTemplate != NULL )
{
// 2 - For each document template object...
CDocTemplate* pTemplate =
pApp->GetNextDocTemplate( posTemplate );
ASSERT_VALID( pTemplate );
ASSERT_KINDOF( CDocTemplate, pTemplate );// 3 - Iterate through the template's document list
POSITION posDocument =
pTemplate->GetFirstDocPosition();
while( posDocument != NULL )
{
// 4 - For each document object...
CDocument* pDoc =
pTemplate->GetNextDoc( posDocument );
ASSERT_VALID( pDoc );
ASSERT_KINDOF( CDocument, pDoc );}
2。通过AfxGetMainWnd()得到主窗口;
3。通过CMDIFrameWnd::GetActiveFrame得到当前活动窗口;
4。通过GetNextWindow()遍例所有的子窗口;(如果要得到你想要的子窗口,可以通过特定的成员变量来标志);
GetWindow遍历?
怎么实现?可以提供实例参考一下吗?