文章分类 - 每日一记
摘要:在指定位置创建控件的常用思想是:先在这个位置放一个Text控件,字符设为空 ,然后根据用户对属性的设置,在这个Text控件位置创建一个指定控件,最后使用DestroyWindow()销毁Text控件,同理,如果用户改变了该控件的属性,再在同样的位置创建一个新的控件,使用DestroyWindow()销毁原先创建的控件。 用户没改变界面上的一个属性时,就应该调用UpdateData()方法将其传递到程序 中,从实时反映出用户的选择。
阅读全文
摘要:on_message用于处理一切消息,但是on_registered_message只用处理在系统已经注册过的消息。 The RegisterWindowMessage function is used to define a new window message that is guaranteed to be unique throughout the system. The macro ON_REGISTERED_MESSAGE is used to handle these messages. This macro accepts a name of a UINT NEAR varia
阅读全文

浙公网安备 33010602011771号