本人一直从事底层硬件相关联的驱动和应用程序的开发工作,最近因为人手和工作的需要,必须参与一些简单的测试和分析等辅助软件制作。于是开始入手学习VC,但是由于时间限制,没有办法逐步递进,只能参考结合别人同类的程序,自己查资料,开始作。晚上或者空闲时间补充基础知识。所以以后会经常来请教,有些问题估计也比较低级,请大家不要见笑,多指点啊。
现在在看别人的程序过程中看到如下用法:m_editFileOpenName.GetWindowText(InDataFileName);
其中m_editFileOpenName是给一个edit空件添加的变量。
我有点不明白这句语句的目的,而且InDataFileName只是定义了一个CString的变量。它并没有什么赋值过程。看MSDN说明
Retrieves the current text of the control.
virtual void GetWindowText(
   CString& str 
) const;Parameters
str
A reference to a CString object that contains the current text of the control.Res
If the control supports the Caption stock property, this value is returned. If the Caption stock property is not supported, the value for the Text property is returned.
也没有彻底理解。请指点,多谢