//状态栏显示内容的设置
m_StatusBar.EnableAutomation();
m_StatusBar.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,0,0),this,0);
int width[]={200,400};
m_StatusBar.SetParts(4, &width[0]);
m_StatusBar.SetText("吉林省明日科技有限公司",0,0);//显示单位名称
CString StatusText;
StatusText.Format("当前用户:%s",user.GetUsername());//显示当前用户
m_StatusBar.SetText(StatusText,0,1);
t=CTime::GetCurrentTime();
CString strdate;
strdate.Format("当前日期:%s",t.Format("%y-%m-%d"));//显示当前时间
m_StatusBar.SetText(strdate,0,2);
这是csdn下载的
"文档管理系统"的一段代码,其中我想更改状态栏,试过n多种办法,都无法修改其中
“吉林省明日科技有限公司”这个logo,求各位高手相助,本人菜鸟刚开始学习。
m_StatusBar.EnableAutomation();
m_StatusBar.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,0,0),this,0);
int width[]={200,400};
m_StatusBar.SetParts(4, &width[0]);
m_StatusBar.SetText("吉林省明日科技有限公司",0,0);//显示单位名称
CString StatusText;
StatusText.Format("当前用户:%s",user.GetUsername());//显示当前用户
m_StatusBar.SetText(StatusText,0,1);
t=CTime::GetCurrentTime();
CString strdate;
strdate.Format("当前日期:%s",t.Format("%y-%m-%d"));//显示当前时间
m_StatusBar.SetText(strdate,0,2);
这是csdn下载的
"文档管理系统"的一段代码,其中我想更改状态栏,试过n多种办法,都无法修改其中
“吉林省明日科技有限公司”这个logo,求各位高手相助,本人菜鸟刚开始学习。
解决方案 »
- WinCE 6.0下有什么工具能检测内存泄露?
- 想学opengl的求助
- 网络协议分析
- pSC = new CSMSCLASS[1]; pSC = new CSMSCLASS[2]; 指的什么意思?New第一个元素,第二个元素,还是new了三个元素
- 对话框中的WM_MOUSEMOVE事件处理
- 通过线程接收数据后,为什么界面闪烁
- 获取FTP服务器时间(时间同步问题)--在线等
- 使用ODBC连接SQL Server,如何添加第一条记录?
- 关与CListView两个成员函数的问题
- ?开发一个类似windows自带的Notepad的程序,在什么地方设置打印和预览的页边距呢?[Visual C++]
- 按照孙鑫的方法画线,发现有延迟????
- 多线程执行问题,急求回答,谢谢!
=========================================================
改这句不行吗?
对了,好像还有还有个资源编辑界面,你在哪里边试试。
改动MainFrm.cpp中的 static UINT indicators[] =
{ ID_SEPARATOR, // status line indicator ID_CURRENTUSR,//你自己的定义的ID. ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, }; 在OnCreat()中: m_wndStatusBar.SetPaneInfo(m_wndStatusBar.CommandToIndex(ID_CURRENTUSR),ID_CURRENTUSR,SBPS_NORMAL,100); m_wndStatusBar.SetPaneText(m_wndStatusBar.CommandToIndex(ID_CURRENTUSR),YourText); 总是会提示错误
,则编译的时候报错:
LINK : LNK6004: Debug/WordGLXT.exe not found or not built by the last incremental link; performing full link
WordGLXTDlg.obj : error LNK2001: unresolved external symbol "public: class _com_ptr_t<class _com_IIID<struct _Recordset,&struct __s_GUID _GUID_00001556_0000_0010_8000_00aa006d2ea4> > & __thiscall ADOConn::GetRecordSet(class _bstr_t)" (?GetRecordSet@
ADOConn@@QAEAAV?$_com_ptr_t@V?$_com_IIID@U_Recordset@@$1?_GUID_00001556_0000_0010_8000_00aa006d2ea4@@3U__s_GUID@@A@@@@V_bstr_t@@@Z)
Debug/WordGLXT.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating browse info file...WordGLXT.exe - 2 error(s), 0 warning(s)