
上一页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 下一页
问:我使用的是BCGCBpro 6.74b.
我利用VC 6.0的BCGCBpro AppWizard创建了一个工程,其中包括CWorkspaceBar(工作区)类和COutputBar(输出区)的类。就是象我们平时使用的vc那样的工作区和输出区.
我想在CWorkspaceBar(工作区)里面显示资源管理器(就是Windows下面那种最普通的选择文件夹的显示),在我生成的工程中,本来是使用的CTreeCtrl m_wndTree显示一个简单的树形格式,于是我打算在CWorkspaceBar使用CBCGPShellTree 来替换上面的CTreeCtrl类,可是怎么都创建不成功。
答:检查g_pShellManager是否为空
如果为空,你需要在程序启动时调用
CBCGPWorkspace::InitShellManager() |
问:VC操作Word中,如何设置页眉和页脚?
答:http://oldlook.experts-exchange.com:8080/Programming/Programming_Languages/MFC/Q_20806283.html
问:在多文档视图类中,某视图OnInitialUpdate()初期化过程中,想要关闭该未创建完毕的视图,请问如何处理?(注:只是关闭该视图,不退出程序)
答:
GetParentFrame()->PostMessage(WM_CLOSE); |
或者
PostMessage(WM_COMMAND,ID_FILE_CLOSE); |
问:如何编写多文档浏览器?
答:参考http://www.csdn.net/develop/read_article.asp?id=21702
问:如何打印一个文件?
答:
ShellExecute(0,"print", "c:\\1.xls","","", SW_SHOW ); |
问:怎样阻止程序被重复打开?
答:CQA tell the sole instance the name of the file to open 、 September 2000 issue of MSDN Magazine
http://msdn.microsoft.com/msdnmag/issues/0900/c/default.aspx
问:
现在知道用GetCommandLine()可以获得所有的参数
但是如何将一个一个的参数放到数组里面供查询使用呢?
就行argv和argc一样
MSDN里面说可以用CommandLineToArgvW
但是这个函数不能用于非Unicode字符集,我的程序需在98下运行
答:
Q How can I parse the command line in an MFC app? My program has several command line options (such as -l, -x, -help). I see there's m_lpCmdLine that points to the command line, but do I have to parse it myself? It seems like there should be some way to make CCommandLineInfo do it, but I can't figure out how. 、
http://www.microsoft.com/msj/1099/c/c1099.aspx
上一篇: 深入探讨MFC消息循环和消息泵
下一篇: 贝赛尔曲线的拆分算法
上一页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 下一页
| 关于我们 | 联系我们 | 广告服务 | 工作机会 | 版权声明 | 欢迎投稿 | 网站地图 |
| Copyright © 2000-2008 , www.21tx.com , All Rights Reserved . |
| © 晨新科技 版权所有 Created by TXSite.net |