我想修改消息框的标题,请问应该在哪里改?怎么改?
就是用AfxMessageBox()弹出的那种消息框。
谢谢!
就是用AfxMessageBox()弹出的那种消息框。
谢谢!
解决方案 »
- NetUserEnum 能否列举隐藏用户
- 远程线程插入程序———Debug时执行出错,Release时却没有错误,请指教!!!
- 请问配置文件读写函数GetPrivateProfileString怎么用啊 ?急!
- 关于结构化存储的问题
- 怎么设置CComboBox的高度(只是象文本输入框的那一部分的高度)
- 再问BLOB问题?(vc连oracle)最好哪位大虾有原码.
- 介绍本vc数据库编程的书籍(50分)
- 谁来帮帮我????????UP有分!!!!
- 图标问题?
- 我买了《windwos程序设计》一书,岁数附带的光盘中的程序不能运行
- 求获取打印机当前状态
- 求 RtlVolumeDeviceToDosName 的用法。
Res
The application name can come from the parameter passed to the CWinApp constructor, or, if not specified, to the resource string with the ID of AFX_IDS_APP_TITLE. If the application name is not found in the resource, it comes from the program's .EXE filename. Returned by the global function AfxGetAppName. m_pszAppName is a public variable of type const char*.Note If you assign a value to m_pszAppName, it must be dynamically allocated on the heap. The CWinApp destructor calls free( ) with this pointer. You many want to use the _tcsdup( ) run-time library function to do the allocating. Also, free the memory associated with the current pointer before assigning a new value. For example:
//First free the string allocated by MFC at CWinApp startup.
//The string is allocated before InitInstance is called.
free((void*)m_pszAppName);
//Change the name of the application file.
//The CWinApp destructor will free the memory.
m_pszAppName=_tcsdup(_T("d:\\somedir\\myapp.exe"));