MFC状态栏的问题
<P>我的程序是MFC基于对话框的,我想在状态栏中显示CString类型的变量,例如:<BR>CString strport = "端口: " + m_strPort; // m_strPort也是CString类型的,已经在程序的其它部分给它赋了值<BR>现在我用::SendMessage(m_hStatusWindow, SB_SETTEXT, 3, (LPARAM)strport.AllocSysString());在状态栏中显示strport,出现的却是乱码,请问::SendMessage的第四个参数应该怎样填写?请各位指教,谢谢!<BR></P>同意
<DIV class=quote><B>以下是引用<U>pinying</U>在2006-5-29 9:36:00的发言:</B><BR><P>我的程序是MFC基于对话框的,我想在状态栏中显示CString类型的变量,例如:<BR>CString strport = "端口: " + m_strPort; // m_strPort也是CString类型的,已经在程序的其它部分给它赋了值<BR>现在我用::SendMessage(m_hStatusWindow, SB_SETTEXT, 3, (LPARAM)strport.AllocSysString());在状态栏中显示strport,出现的却是乱码,请问::SendMessage的第四个参数应该怎样填写?请各位指教,谢谢!<BR></P></DIV>
<P>支持</P>
页:
[1]
